If the stock markets didn't outpace inflation, nobody would own stock.
The NASDAQ is doubling consistently every 5-6 years, with an average yearly growth of 13-14%. The FTSE 100 is not as fast but still grows like a slime mold on agar.
Owning stocks in durable companies will always pay off well in the long run.