Did you stop to think for two seconds before posting this? People can tell where a sound is coming from in a 3d space. That’s why you can tell the difference between a sound directly in front of you and directly behind you.
I remember being blindfolded in high school science class and testing this by having someone clap two sticks together around my head. Surprisingly difficult to tell if something is in front or behind you.