If you actually passed that course the professor should have their tenure revoked. The S&P500 rate is a rough proxy for the return on invested capital in the country, and it always crushes the risk fee rate over time.
I’ll give you a hint that may open your eyes. Volatility is not risk.
Individuals can, but overall, the net gains by all players is the risk free rate.