It's just the most basic idea, people work together because they get more out of it than by being alone. Some members of the community are in charge of making clothes or making a campfire, so they need someone else to bring food. Grug might get more food by being alone, but he doesn't get anything else, like protection. Modern civilization is just a continuation of that.