Eating food is a body thing, not a mind thing.
An adult brain consumes roughly 20% of the energy that an adult consumes based on resting metabolic rate studies. Look it up.
If you don't consume enough calories your brain starts running on ketones instead of sugar and will see decreases in cognitive ability. Again, look it up.
Thinking and learning requires a lot of sugar.