Answer
The masses of the cannonball and of the cannon are very different, so forces of the same magnitude acting on each would produce different accelerations. We know this from Newton's second law.
Furthermore, the forces named in this problem are not the ONLY forces acting on each of those objects.