It didn't start as a means of exchange, and that was simply a by product of having it. Money started as a method of enforcing debts owed to the state.