So sharks have these sensing organs(electroreceptors) called Ampullae of Lorenzini which detect the presence of other fish around them due to the fields created from electrical impulses. This video shows how a strong magnetic field can deter sharks and prevent bites. Other animals have it too besides the shark. kind of interesting how sensitive these receptors are. according to the wikipedia page, they are sensitive enough to detect 5nV/cm fields.