Gold is rare compared to other elements, cannot be economically created, and is only destroyed in extreme circumstances such as nuclear annihilation (it does not corrode or evaporate) so you cannot devalue the base metal, the value is inherent in a set weight of gold and is solely determined by the market.