Why were gold and silver treasured in the mercantile ages when they weren't very useful? - eviltoast

Gold has a lot of practical applications now (although is of course still treated as a ‘precious’ metal of value), but hundreds of years ago it was just a shiny metal. Why did it demand value, because of it’s rarity? Why not copper, because it was too easily found? What made it valuable ahead of other similar metals?