The frequency the transducers produces is too high to hear, but their amplitude is being modulated at a frequency you can hear.
Picture each 40khz wave as a discrete bar in a bar graph and the heights of each bar mapping out the sound you actually hear.