Gold can be volatile but not as volatile as cryptocurrencies but this also does not mean that gold is totally risk free. There are still risks to be considered if you were to invest in gold but due to gold's rarity and limited amount of supply, its price is to be always assumed to go up. This is why people use gold to fight against inflation and is also the very reason why a lot of people compare bitcoin to gold.
Gold has risks and any asset has risks but if we compare gold and bitcoin, gold is safer and that is why governments and big investors still choose gold whenever the economy is unstable.
Gold is in limited supply and is considered rare , but that is not the only factor that drives the price of gold. The important factor is that gold has many practical uses and applications, which keeps the demand for gold high even as supply continues to increase .
Some people often compare gold to bitcoin and claim that bitcoin is like gold but I doubt that. Because with what's happening, we have a chaotic economy and people have moved to gold instead of bitcoin , so bitcoin is still not comparable to gold .