Intelligence emerged in homo sapiens by progression but the means it developed remains unclear let alone why.
Some humility is required.
Homo groups were preyed upon by a host of predators, many of which have since died out. Homo Hablis was the choice lunch of various cats in the past as we are still for leopards in the present, although mainly children are captured and eaten. Chimpanzees and gorillas are also the food of choice for leopards. Neanderthals, our close relatives, were hunted down by hyenas. So probably were we.
Did intelligence develop in a weapons race with ancient predators, emerging as we moved out of the forests and became more vulnerable. Walls around cities were first created to keep predators out not human enemies. Most of the animals who predated on us are now gone. Did we remove them?