From an engineering perspective, the muzzle can be a weaker spot.
I am unsure of the typical pressure curve of blackpowder arms. However, their relative pressure at the end of the ball travel is likely higher than a faster burning modern smokeless powder.
The stress from pressure can dissipate in all directions except in spots where you run out of space. Also, the sharper the edge, the higher the stress concentration. Small hole, cracks, or abrupt changes like the sharp edge of a rifling bore can cause local stress to easily be 3-4 time higher than in an simple smooth geometric device, like versus a plain undrilled pipe.
Also, cannonballs far as I knew were common cast iron. Smaller item mass produced likely cooled much faster, making a harder material. This likely produced stratches which would cause even more stress risers.