I think they had coins way before dollars and they were important to buy stuff, just like today. Before coins people just traded things, like 2 goats for a cow, or stack of wood for some type of service. Not very convenient to carry things around with you when you wanted to go shopping, so coins were used to instead.