Social security is a mandatory insurance program, not a mandatory investment program. Like any other insurance program, the solution to shortfall is to increase premiums or decrease payouts.
Since there isn't yet a shortfall that can't be covered by existing funding sources, these solutions have not yet been implemented. Just like a private insurance company.