Animals evolved from common ancestors that had brains there. Since the brain has lots of extra protection and other evolutionary adaptations around it (like short connections to eyes, ears, mouth, etc), it’s hard to move. So it generally stayed where it was in our very distant (200+ million years ago) ancestors.
Latest Answers