Yah know, I heard someone give an explanation of gouging that almost made me agree with it.... Gas stations don't make much per gallon off gas-just a few pennies per gallon. Like movie theaters (that don't make much off tickets), gas stations make money off the drinks, food, and other items inside. If, during one of these gas panics, everyone makes a run on the station and buys up all the gas, the station is practically if not literally closed until the next tanker comes. While it's closed, or there's no gas, no one is coming in and buying Little Debbies, fountain drinks, Swishers, etc. These being the real money makers, it's a big financial loss even though they sold up all their gas. So the price is raised in part to dissuede people from buying up all the gas in an effort to avoid this scenario.
I don't know that pure greed isn't the reason but this explanation certainly makes sense to me.