Answer:
You can thank Newton's 3rd Law
Explanation:
Newton's 3rd law states that "for every action, there is an equal and opposite reaction" When a cannon releases a cannonball it pushes on the cannonball which causes the cannonball to push back. This makes the cannon recoil when it fires a cannonball.