I'm pretty sure that since you built it through the map in the castle, technically the kingdom built it, and so the profits got to the kingdom. Just because you're the king doesn't mean you own all businesses.
Will you take the taxes of the Kingdom as if was your money, either you use the money for yourself or for the kingdom is your choice . In other words most of the Kingdom is pretty much your property its an absolute monarchy