If a company made $1m last year and is expected to stay flat for the next decade, it's worth $10 million.
If a company made $1m last year and profits are expected to grow 10% annually, it's worth $16 million.
If a company made $1m last year and profits are expected to grow 100% annually, it's worth $1 billion.
The implicit model for stock pricing is more complicated, but you can see correlations even in a simple model like this.
Nobody knows what will happen several years into the future, so it's mostly bets and speculations. Especially in high-growth companies, where many of the bettors appear to believe that trees grow to heaven, and the company's yearly profits will soon exceed the world GDP.
So the stock of high-growth companies sell at an enormous markup compared to current profits. By the same token, that markup can evaporate very quickly if a formerly-high-growth company shows any sign of slowdown.
In terms of the simple model above: If traders used to think that the $1m-profit company would grow 60% annually for the next decade, and something happens that makes them believe that it won't be more than 40%, the value of the company would immediately drop by more than 60%.