Edit: Ok, "as far as possible" is an exaggeration, but they aren't close.
And there are lots of reflexes to fire, before we have time to understand what we're seeing. Like putting your hands in front of your eyes when an object approaches rapidly, long before you recognize what the object is. There needs to be something between the retina and visual cortex to respond to this quickly enough.
duration for the signal to travel is one explanation, but not a great one because nerves are fast. (a lot of nerves take weird detours, the visual cortex itself is located at the back of the head). More mundane explanation is heat dissipation. The brain consumes a lot of energy and emits a lot of heat. Would be pretty hard to get rid of it anywhere else.
Maybe with some more billion years of evolution our DNA would create more abstractions, like how to generalize optical nerve paths and not just touch/muscle etc, but as we are now it seems like the logic isn't there. Such a thick nerve bundle would need to get added to the spine with everything else, or risk getting pinched and disabled just by moving around, but for now it seems like the spine abstraction doesn't support optical data.
Assuming the brain and stomach both need mutually exclusive physical space, let's swap the two and see what happens.
If the stomach is in the head rather than where it is now then it is right by the mouth, so food need to travel less. So it might be a first order solution to optimal spatial layout of the body components. Except, now there isn't enough time for the food to be digested so you have to move the stomach further away...
No they’re not. If your optic nerve had to travel from your stomach we’re talking a delay of 100s of milliseconds.
If the brain was in the abdomen, the latency to move your head would be a roundtrip longer.
especially for animals which orient using scent.
Octopi live underwater. Light diminishes with depth. More data gained from feeling around currents, so brain goes in tentacle.