Regional distribution layouts also play a factor. Gas in my town is always higher than in the counties to our west and south - sometimes by 15 cents. They tell us it is because of how the distribution network is laid out.
But I will say that, even though I hate paying $3.34 a gallon I will be glad to pay it and have an always-available supply rather than letting government get involved with some price cap. A price cap will ensure shortages and rationing. Happens every time.