Algorithm dynamic ESS, selling back to the net

Hi, new here on this forum. Wanted to raise the question that I sometimes have my thoughts on the logic of the algorithm of the Dynamic ESS system.
Example, see picture below. In the latest hours the price / kwh is quite high and stays high for some hours, SOC is around 50% and not expected to run the whole house coming hours on this 50% (I have a 20Kwh battery system). To my surprise the system delivered energy back to the net in recent hours. I’m wondering why? It’s not because I could earn money on it. Loading the batteries during the night for 0.2286 and ‘selling’ it back now for 0.225, with the expectation that battery is running low and having to ‘buy’ energy in a couple of hours for 0.29-0.24. Can somebody explain if there’s any logic for this?