It was mostly agriculture and dense human settlements, I think. Once you have someone farming enough food for themself plus someone else, that "someone else" can do something else to progress technology. Sometimes with things that allow that farmer to produce enough food for three people, then five, so goes on.
more food and more people who came to buy the food now you need people to help make the food and keep track of the sales and now you need houses for people to live in and people to make the houses, and now there's more people and they invent things, which makes things better and more people come and there's more farming and more people to make more things for more people and now there's business, money, writing, laws, power
Right, the history of human progress is literally the history of human cooperation. As the scale of human cooperation has expanded so has the scope of the problems we can solve.
We are actually quite close to having something resembling global consensus on a bunch of issues. It is only a handful of notable holdout states which are standing in the way of humanity effectively being able to draw down arms and focus on bigger issues.