Retailers have to work through their inventory that they paid $X per gallon. Once the inventory that is gone they can charge $Y/gallon. With the assumption price Y < X .
You also have to consider that the refineries have a stockpile of refined GAS from oil bought at X that they have to get rid of before dropping down to a new Y price
That’s probably a simplistic view of how things work in such a global market.