Taxes pay for it. In the US, each state decides on their own how to fund it. Texas does so by taking a percentage of homeowners' property tax.
In Australia, it may be the case that only families with children have to pay the necessary taxes, but I think it's most likely that they just take it out of your taxes without you knowing about it.