New Study of Ancient Societies Explains Why Money Was Invented