Governments must provide some goods and services because public goods are non-rivalrous and non-excludable and are not subject to the exclusion principle. This means that every person has the right to enjoy these products. Public services are not provided by the free market.
In contrast to this, private goods are rivalrous, which means that only people who are willing and able to pay can enjoy the product.