I wouldn't expect someone who had to go to Mercer for law school to understand this, but high gas prices mean high diesel prices. High diesel prices mean high shipping/transportation, logistics, building, and agricultural prices. High shipping/transportation, logistics, building, and agricultural prices lead to tightened profit margins. Tightened profit margins lead to supply chain disruptions. Supply chain disruptions lead to increases in prices (this is called "inflation") on almost everything we consume. Increase in prices ("inflation") on almost everything we consume leads to the erosion of the purchasing power of money. The erosion of the purchasing power of money, at the same time as the stagnation of wage growth, or widespread unemployment/layoffs, leads to high cost of living. High cost of living leads to a whole lot of unhappy people. A whole lot of unhappy people leads to, at a bare minimum, tidal wave-esque political change, and at worst, violence and even revolution.
So now that we've covered the economic piece, let's discuss what this means politically. People don't like high prices. People also don't like politicians. People tend to blame high prices on politicians. People who blame high prices on politicians tend to vote against the politicians in power at the time of the high prices. See where this is going?