You mean through exclusionary rules, investing in monitoring and punishment etc all of which divert resources from the productive activity solely by the existence of the incentive to overuse the "commons" or others' goodwill.
True, while the subgame unique subgame perfect equilibrium of most models is full free-riding, most lab experiments show less than full free-riding. That does not mean the incentives are not there.
Why are dorm bathrooms not as clean as bathrooms in your house?
> inventing money because barter is inefficient
That's a silly statement: No one decided to invent money in a similar process of invention like the lightbulb. Instead, coins, tokens, and other recognized mediums of exchange dominated over barter because barter is inconvenient and inefficient.
Even animals can learn to use a medium of exchange[1].
[1]:https://www.sciencedaily.com/releases/2009/06/090608095044.h...