Size is everything
A little lesson on “it’s what’s on the inside that counts”. Generally, sharks are bigger than dolphins, so you might expect their brains to be bigger too. But actually, it’s the other way around.
This goes some of the ways to explain why dolphins have a reputation for being smart and displaying altruistic behavior, sometimes even protecting humans from sharks.