Why the brain of a mammal usually is larger than the brain of other animals of the same size?

Its because mammals have to learn and remember more then other animals