If interested, look up the electric theory of the universe. ....
Add Zero point energy to that to make a bit more sense.
https://www.britannica.com/science/geomagnetic-field/Sources-of-the-steady-magnetic-field#ref295865