No magic required: the tech for transporting electricity predates writing, and that by about six millenia; while reusable storage was only about 27 years after dynamo generators, 1859 vs. 1832.
Magically transporting and storing liquid fuels involves an unbelievably massive supply chain of trucks and refineries and storage tanks and gas stations.
If we need infrastructure to make use of energy we can ‘magic’ it up.
Both have since been improved upon somewhat.