> Could you elaborate on how "'inventing money because barter is inefficient' doesn't seem to exist in the real world"? The idea that barter's inefficiency drives demand for money seems to me to be self-evidently true, so I'd be interested to hear a different perspective.
Others point out Debt below, and that's the canonical argument here. Effectively, the kinds of small societies that most people lived in for most of human history manage exchange based on personal relationships and reciprocal exchange, not abstract or closed monetary transactions. Money arises in the context of either long-range trade, in which sustained relationships aren't guaranteed, or in the context of large states which actually require some form of bookkeeping to track things like taxes and tribute.
The "self-evident" nature of the "barter becomes money" story is the origin myth of Economics - it absolutely sounds like a way things could have happened and feels deeply plausible, but there's no evidence it did.