Stock market means average. Every "investment" that is slightly over average stock market returns for some time beats the stock market in that timeframe.
Now, doing that consistently over and over again is something to strive to, but not many other investment in the same risk category do it.