It works the same way everything works in real life. If a dog is barking at a distance, you see the dog first and then you hear the sound later. It all happens so quickly that you don’t realize the time lag between both waves. Same works for camera as it is just recording things as it is. If the source of the sound is too far away, you can even hear echoes. Tune into a soccer match next time and re think this.