Statistics like CPI really aren’t meant to be used to track inflation over many decades. It’s really only meaningful over a handful of years, and only when we’re talking about the economy as a whole (not to use it to say any individual or group is better or worse off). A dollar today can buy many things it could not buy 100 years ago.
The price of gold is a completely useless measure of inflation. Governments have a long history of manipulating its price as a policy goal. Even today, governments buy and hold large quantities of gold.