It's called malinvestment, and it's tied to monetary policy. When the central bank churns out money, the lower interest rates discourage banks from lending, making it harder for small businesses to collect capital that way. The lower interest rates simultaneously drive investment from bonds into the stock market and real estate.
Look up Business Cycle Theory