Doppler effect
Where does the change in pitch of a passing ambulance come from?
It all comes from the motion, not the siren, which changes absolutely nothing. The vehicle compresses the waves in front of it and stretches them behind it. So the sound seems sharp as it approaches, then deep once it has passed you.