Perhaps the cannon was never drilled through, and was meant only as a display piece? But then, why the cannon ball down the bore in the first place?
Maybe the spike is just flush with the bore, which would be quite a coincidence, but I suppose it could happen. A bit of rust on the inside, and...