This collection is not owned by the UK Government. The Royal Collection has some items owned by the Queen herself as a private individual and some items are owned by the Crown (which is a difficult enough abstract concept even if you are British but in this context, it basically means the reigning monarch).
The collection is managed by a charity, The Royal Collection Trust, and other than the tax advantages all charities have, there's no taxpayer involvement here.