Back then money was based on precious metals, not monopoly money. Although Early America did have problems with hyperinflation from war debts. Anyway the point is the money is invested, so it's not literally just cash sitting in a vault, but is earning itself interest.
The point is that interest does not always cover inflation. The fact that money was gold or paper back then makes no difference. Invested money can be lost.