Before money existed, people exchanged goods through barter. While workable in small communities, barter required each party to want exactly what the other offered, making large‑scale trade difficult.
Reference:
Wikipedia reference
TaskLoco™ — The Sticky Note GOAT