They were given money at much lower value than the gold was worth. Basically a bailout for the Federal Reserve at that time, and private gold ownership was banned until the 70's. Australia and UK did the same also.
I am aware of crypto, thanks. Decentralized currency is fine by me, but replacing cash with a centralized digital currency is a disaster for financial freedom, imo.