When you have positive externalities, the social return to producing some good exceeds the private return, and that’s a good thing for society, but it is a market failure which keeps the rate of investment lower than it could be.