I think it's useful to think about evolutionary pressures forcing species to be "smart". Brain is an incredibly expensive organ, so it better be more useful than its energy consumption. We don't even quite know why primates have larger brains; we have some theories such as primates, being arboreal, might have evolved to process snakes and spiders visually (this also explains why they have poor olfaction compared to other mammals) [1]. Afaik, and please prove me wrong, we have fewer evidence why great apes have even larger brains and humans have even even larger brains. Might be better communication, group hunting, problem solving (using tools), caring for babies better, or something else, or a combination. It's interesting to think these questions with respect to pigs, octopi, dolphins, cats, dogs etc... Every mammal comes with their own supercomputer pattern matcher that is neocortex, and it's interesting to think that earlier mammals needed more computational power to survive than other animals.
[1]: http://www.sciencemag.org/news/2013/10/did-snakes-help-build...