That's solved by either private monopoly charging money to fund investment, or public monopoly raising taxes to fund investment.