Refining oil also requires substantial amounts of power. From what I’ve read the power to refine a litre of gasoline e.g. requires as much power as an electric car would need to go the distance 1 litre of gasoline gives you.
If refining 1 liter of gas took the energy potential of 1 liter of gas then we wouldn't be dominated by the petroleum industry... The chemical energy storage in hydrocarbons is stupid efficient compared to the alternatives.
Oil refining is very energy intensive, but gasoline production is highly energy positive. Interestingly: atomic process heat for refining could tae a huge chunk of CO2 off our roadways and also improve oil production numbers significantly (20%-ish).