There's a good explanation of that in a post that's in the part of our FAQ dealing with economics, written by /u/deadletter: Why were gold and silver used as currency in so many civilizations throughout history?