Everything is paid for through the tax payer. That includes roads and prisons and firefighters and a million other things. Just because they are paid for through the tax payer doesn't mean they are immune to being underfunded.
Unless you mean NI contributions? Those go into 1 big pot along with everything else and then the government allocates funds how it sees fit.