Public goods and coercion
Everyone could agree lighthouses are good, because they not only save lives, but also help shipping and trade, which creates wealth in the community, But no one wants to pay for the lighthouse! Despite the potential benefit to ships specifically and the community generally, no individual person or company had incentive to finance the venture.