If Ford came out and said they'd never build another F-150, you could expect the prices to jump immediately. Is it greed? Yep. Are you greedy, too? Yep. We all are. It's mine, and if you want it you'll pay my price. It doesn't matter what I paid for it. That is none of your business. This one is mine, and I can price it any way I want. Now, if a guy across the street is giving F-150's away, I'll have to drop my price if I want to get get any money (it's your money, after all, and what you do with it is your business). The only reason the gas stations can charge so much is that there is good reason to believe that the resource is about to be very restricted, and you won't have the alternative to get it cheaper elsewhere. Why should they give you their gas at a low price today if they can expect it to be worth double that tomorrow?
This is not academic. I have a Malaguti Yesterday scooter that my wife wants to keep because she thinks it will be a collector's item. They aren't making anymore (haven't for 20yrs), and they were a hot item at one time. So if you want one in ten years, you'll have to meet her price. It's a free market, and the price will be set by how much people really want the limited resource. One alternative is to let an omniscient bureaucrat decide the price. History has clearly demonstrated that bureaucrats of the omniscient type are in exceedingly short supply. Another is to enable more suppliers (have someone else make trucks, scooters or gasoline), but that goes against the agenda of some unnamed powers that want us all to buy electric vehicles.
Why are gas stations vilified for behaving the exact same way every one of us would at a yard sale or auction?