At times, Magnemite runs out of electricity and ends up on the ground. If you give batteries to a grounded Magnemite, it’ll start moving again.
It’s frequently the cause of power outages, which is why some power plants send out electrical signals that it can’t stand.