In the case of gold, classic economics would say it gets it's value from scarcity.
There is the production side which can require considerable capital vs the demand side as a store of value as well the products which require its use. But your right, you can't eat it...
