There is absolutely no guarantee that stock market returns exceed inflation. The big US indices have for the last few decades, but they're extreme outliers.