>Gold does no useful work and produced no measurable output
What? Gold us physically useful and relatively scarce, THAT is why it has value.
You are acting like people just got together and said "hey, let's take this useful hunk of garbage and assign it some value to see how rich we all are".