Earth has an atmosphere. We are moving in it . The air inside the car moves along with the car and the fly also moves with the same speed as the car in addition to its zigzag movements. I think the fly is "attached" to the air inside the car !!
The same holds for the ball thrown up. It already...