I think the assumption of intelligence among humans is a little anthropocentric. Cooperating in raising children, sex, division of labor and food sharing are all seen in other animals. Hibernating and nests are the same way between humans and animals. Some elements of human speech.. loud and varied sounds, rhythm and tone, dialog are also seen in the animal kingdom. We also have the same instincts such as fight or flight response, protecting our young and the bad behaviors such as murder or r-pe.
Anyways all animals have some level of intelligence, including parasites but we evolved with more grey matter. Grey matter basically contains the brain's neurons. This grey matter includes muscle control, sensory perceptions like seeing, hearing, memory, emotions, speech, self control and decision making.
The human neocortex is larger than any animal and is what affords us our unique mental attributes. Its structure is similar to primates than other regions of the brain because of our shared common ancestor.
The rest of it is complex, there's multiple reasons why species evolve differently like adaptions.