This is true even though another person who is observing the moving vehicle pass by also observes the ball follow a curving parabolic path in the same direction as the motion of the vehicle.
What path does a ball thrown up and down in a moving vehicle take when seen by an outside observer? 
parabolic