It was used as money because of its ornamental value and it derived its ornamental value from its inherent properties, for instance the fact that it doesn't perish,rust or degrade.
A cursory read of history would show that jewelry/ornaments are huge factor in the historical value of gold.