As the object causing the disturbance moves closer, the pressure waves near your ear are beginning to compact more which causes the sound you hear to be louder. As the object causing the disturbance moves farther away, the pressure waves near your ear are being stretched so you cannot hear the noise as much, making it seem quieter.