That's a pretty low yield. That same investment in an index fund over that period is probably worth ~$40k and that's assuming you have no dividends.
Kind of a weird example to pick. Also, even if your investment lost against inflation, you still made money. Stuff that $10k into a mattress and you'll have $10k after 20 years.