The cart, cannon, and the ball share the same velocity before the "cannon" is fired, since they are moving along together. As the ball moves, it keeps the horizontal velocity that it had before it was fired. Use the arrows to view the movie frame-by-frame, and note the horizontal positions of the ball and the cannon as the ball moves through the air.