Not disagreeing with your observation, but to extract gold, you need a mining license which is typically required by law, so in a way governments can still make useful laws that regulate the scarcity or abundance of gold as a commodity by pricing mining licenses accordingly.
Gold ownership was outlawed in the US in 1933 by FDR.