Before money, people directly exchanged goods. This required a double coincidence of wants, where what one sells is exactly what the other wishes to buy.