Scarcity and utility.
All the easy to get at gold has been mined decades ago. Before your parents or grandparents were even born. Costs a lot of money to get gold nowadays and mines are incredibly expensive to run.
Gold is needed in many high end tech applications among others. It didn't rust/oxidize and it's chemically inert. There are literally thousands of uses for it.