It was a tool to exchange goods to be able to share and use food and material in the faire way so that every person has access to it.
It was a tool to facilitate exchange and just a tool for exchange and not to enrich.
The human pattern is greedy and competitive. The will power is used to think of your own benefit and profit, so soon you realized, that this money system would give you privileges.
You lost your values and virtues and money became a tool to enrich you a not to give you just a right of exchange.
This turned humanity and earth to a quick deterioration of power and privilege, which more and more of a problem creating wars, pollution and injustice.