Why would people sell equity in their company except for cash, and why would you pay cash for ownership in a company except for the stream of income it represents and the secondary market for that ownership?
How come people decided it is illegal to trade ivory from an elephant killed a couple hundred years ago? Was it made illegal to possess child pornography that was already created only because it is morally toxic, or does said consumption also induce demand for additional victims?
Even though debt markets have a lot more to do with day to day financing of corporations, equity markets have a great influence on terms. Furthermore, the unavoidable importance of secondary markets for debt and their derivatives can be understood by considering the importance of secondary markets with respect to prices of homes, automobiles, or any other large consumer purchases.
My main point really was that the examples parent gave seemed much closer to examples of market economics in general and would hold true, with or without stock markets.
John Bogle, founder of Vanguard and renowned investor, seems to disagree with you: "The stock market has nothing—n-o-t-h-i-n-g—to do with the allocation of capital. All it means is that if you’re buying General Motors stock, say, someone else is selling it to you. Capital isn’t allocated—the ownership just changes. I may be an investor, you may be a speculator. But no capital goes anywhere. This is basically a closed system. You have new IPOs and whatnot, but they’re very small compared to this vast thing we call a market, which is now around $24 trillion. The allocation of capital? That’s just nonsense."
I think you are mixing up the concept of a market economy with a specific kind of market, the "stock" market.