For communication under(salt)water, you're pretty much screwed with every part of the electromagnetic spectrum apart from visible light, and even that won't work in cloudy conditions or if the emitter is occluded. Sound is really the best option.
Because infrared doesn't work very well in water, and crashes in water are the biggest challenge for finding wreckage.
Airliners also carry emergency locator transmitters† (ELTs), which, when activated by a crash, transmit radio signals which can be triangulated via satellite. However, ELTs do not work underwater. No ELT signals from MH370 were heard.