These villages better build defenses against the marauders or all is for naught. And of course, the best defense is a good offense. And... Fast forward to the presently peaceful times of mutually assured destruction!
That is a point of a village as opposed to living in separate farmsteads. (there are other points to villages, but putting a group of people together is an automatic form of defense)
Villages appear long before defensive fortifications in the record, in many cases. Pure reason is not very good at forming predictive theories about history, as a general rule.
There are many possible reasons for villages, and cultural reasons are a very big determinant of how people live. So are economic reasons. Many of us live in big cities now, and it's generally less safe.
Don't underestimate just how many people are needed to defend a village.
A village has a lot of land to defend and not many people to do it. The local town or city sized group will just pitch up with many more men and overrun you. All whilst having enough people left for defence. And they are likely to have more access to heavy weapons that can blow your house up from a distance.
Nations will overrun villages, but a city alone doesn't. Cities need villages to provide food, so a city never goes to war - it is instead the nation, headed by the city but also including all the villages.
We tend to record the raping and pillaging because those are the times of disruption. I'm not a historian, but I can imagine that there are long stretches of history that are relatively conflict-free for most of the world, but such times are not really that interesting so no one tells stories about them.
At least in the enlightenment period, tend to come from political philosophy rather than history... though the two are closely related in this period. Notably, Hobbes and his "state of nature" concept.
Philosophy of this period (also Locke, Marx, etc) tended to speculate about the past using reason, rather than empirically. A lot of their ideas have been passed down to us.
Hobbes' saw life in the "natural" state "solitary, poore, nasty, brutish, and short." Eventually government arises, using its monopoly of violence to end day-to-day violence, cheating and such.
I don't think the original writers are compelling anymore, but they are hard to shake entirely. Memes die hard.
In any case, I think the reality of people at all times is that cooperation is a fundamental. There are no societies without cooperation, some form of solidarity, love, etc. We could have never survived without it. Violence is also common in history, but we don't need it to survive. We also know that primates, dogs and other creatures have demonstrably empathetic behaviours, a sense of fairness and such.
As I implied at the start, I think the mistake is literal fundamentalism. Human behaviour can't be logically derived from a fundamental nature.
In reality villages will be built, laws written and religions made up.