But what is gold actually good for? I mean in a medival survival kind of situation, how did they ever start thinking "wow, this shiny metal sure is worth 2 cows"...
No, i think the reasoning was always "we all agree that 1 coin equals 1 bread, 10 loafs of equal one small pig, so 10 coins equal 1 small pig" etc.