Barter existed before the creation of money. However, barter is limited by the necessity of complementary needs for it to work. However, the person in front of me may not need what I have to barter. Moreover, money is a way of storing value, which does not change over time, contrary to perishable goods like food. This is the reason why bank notes use high technology to ensure they remain very resistant with time. Before bank notes, humans used shells because they are robust goods, then precious metals. Thus, gold has been a source of fascination for men since the beginning of times. Then, humans needed something to calculate the value of goods by units of account (units of shells, units of gold). Lastly, all the financial and economic evolutions came from the desire to facilitate exchanges between humans.
I highly recommend Shazzie’s fascinating book, Naked Chocolate.