Explain, why public goods must be provided by the government?

Public goods such as parks, roads, water supply, bridges, national defence, etc are the goods which people urgently need for their day-to-day living, but . market mechanism cannot produce these goods in sufficient quantities, due to its features of non-rivalrous and non-excludable in consumption. Therefore, these goods need to be provided by the government.