Why do public goods cause market failure?
The free-rider problem means that consumers will not be willing to pay for public goods. Therefore, no private firm will be willing to produce the good.
Therefore, the good will be underprovided in a free market and consequently, too few scarce resources will be allocated to producing the good. This is inefficient and results in market failure.