That depends on the government, whether it is state or national (or local).
Some public facilities often provided by governments are:
Chat with our AI personalities
drinking water and electricity
the government get money for public facilities fromthe various taxes like incometax,sales tax,housetax,water tax,road tax..........
AS private companies are not ready to provide these service without any profit,therefore it is goverment duty to provide it
the right to use public facilities.
The government(:
By using collected taxes to fund school facilities