I was under the impression that it was used for the moulds. Not sure whether I read that or just assumed that.
I don't think coating a cannon ball would make much odds, the charge would not be entirely predictable in those days likewise the cannons themselves would only be accurate to a certain degree however the coating would assist in that it would prevent rusting & extrusions therefrom.