Gold is generally inversely correlated to the US dollar. When the value of the dollar declines, gold typically increases in value. This helps central banks to protect their reserves during periods of market volatility.
Also, countries use gold to settle trade imbalances or as collateral for loans. Holding gold reserves can enhance a country's creditworthiness.