Since a sonar array is extremely sensitive to underwater sounds, it must be protected from the noise generated by machinery on the vessel on which the sonar is installed.
The term baffles is likely derived from a lesser used definition of the word itself, that of "a partition that prevents interference between sound waves in a loudspeaker."