401k, defines benefit pensions, HSA, IRA, 529 plans, etc. There are tons of government subsidies for the stock market, and not just via tax incentives.
What tax incentive is there for real estate other than the small SALT deduction? A mortgage is just leverage, you can similarly deduct margin loan interest (with no cap other than investment income IIRC).