Cows die, and wheat rots. But money "lasts longer" than most trade goods. If someone sells a cow for money, he can save that money away until he needs it. He can always leave it to his children when he dies. It can last a very long time, and he can use it at any time.