> Stock markets exist so that companies can raise money to fund their projects
The amount of money corporate America raises from initial and secondary offerings in the stock market is negligible relative to corporate bonds, lines of credit, bank loans etc. Companies don't raise money from the stock market in any real sense. It has been this way since World War II (and possibly before).