Stores of value are, for the most part, societal constructs. Anything has value as long as there is somebody willing to exchange something of theirs for it. That's also what makes value intangible as there is a built-in subjectivity in this.
Gold falls into the category "has always had value, so it will always have value" type of thoughts. And that's just what gives it value, out confidence that we can exchange it for something when you need it.
Gold has a few properties: one is that it has had value through history and another is that it’s a physical asset, and because of these two properties, it’s quite liquid. It’s also a metal that doesn’t naturally corrode.
Central banks of countries hold various kinds of assets, including bonds and currencies of other countries. But bonds and currencies are just “paper”…or are more vulnerable than gold to shocks in certain conditions.
The disadvantage of physical gold is that it doesn’t generate any income by itself, as compared to bonds.
During times of higher uncertainty, people and institutions (including central banks) flock to gold.
Central banks do a lot of things, including buying and selling currency with foreign partners. If you’re trading using weak or unstable currencies, gold may be a useful alternative.
Intangible financial systems rest (simplistically speaking) on fundamental concepts of trust and reliability (aka what I expect to happen will happen).
Once these factors start to breakdown, all these intangible forms of holding wealth loose value. Gold remains as a significant reliable long term store of value.
It can be used as a collateral for loans, last resort for currency buybacks, emergency resource in times of war... Mostly it's a reputational tool to inspire faith in the country's creditworthiness.