For thousands of years, it has been safest for humans to stay together in a herd. Wandering alone on the savanna was deadly. This biological urge to do as everyone else does is deeply rooted in us, and it becomes very visible when we log into the stock market.
Herd mentality occurs when people stop thinking for themselves (using their intuition), and instead just copy what the masses are doing. If everyone suddenly buys shares in a new hydrogen company because it is on the front page of every newspaper, it feels safe to do the same. It cannot be wrong, right?
The answer is unfortunately often yes. This is exactly how financial bubbles occur. The herd drives prices up to absurd levels completely disconnected from reality. And when the bubble finally bursts, the herd turns in mortal fear. Everyone runs for the exit at the same time to sell, creating a gigantic stock market crash.