There's only two reasons to buy stocks:
1) for future cashflows (aka dividends) derived from net profits.
2) to on-sell to somebody willing to pay even more.
When option (2) is no longer feasible, the bubble pops and (1) resets the prices to some multiple of dividends. Economics 101.