Or conversely, why is your head near your brain? Sensory organs came before or after cephalization? In other words, do we have a head because it is advantageous to be able to respond quickly to quickly changing incoming sensations (vision, audition)?
This is interesting:
However, flatworms differ from more advanced animals in that their mouths are in the center of their bodies, not at the anterior end.