> I'd argue that the "purpose" of the stock market is matching investors with companies that want liquidity.

But you don't usually buy the stocks from the company itself, do you? Unless there is some shenanigans with buyouts going on...

Companies can issue new shares to take advantage of positive public sentiment.