Two main types of location hardware, one acoustic, the other electromagnetic. Another words one puts out a sound and the other a electromagnetic wave.
Electromagnetic waves for practical purposes do not travel under water. Sound goes really well under water. The pinger is attached to a "black box" (read the one that makes the noise).