Quoted By:
Take a lightning bolt
Have it strike magnetite
Congratulations there is a chance you just created a permanent magnet in the form of a lodestone, hence why its typing is ground electric (rock electric would have probably been better)
Fun fact: If iron ore didn't exist near the surface of the earth we might have never discovered magnetism to this day or if we did it would have been by pure accident jn the last 100 years or so. That of course assuming without the thousands of years of advancement and expansion brought from the navigational benefits magnets brought we'd even be remotely close to as advanced, given sea travel without lodestones was a fucking nightmare and essentially rolling the dice