It is attracted by electromagnetic waves. It may approach trainers if they are using their POKéGEAR.
It’s frequently the cause of power outages, which is why some power plants send out electrical signals that it can’t stand.