Britain took out a loan to repay British slaveowners for the cost of their slaves when slavery was revoked .. that loan was repaid for more than a century and only recently closed out.
The responsibilities of an institution outlive the lives of the people that staff it.
Beyond that the costs of maintaining the few remaining trapping of empire today are a sizable drag on the UK economy.