It's more subtle than this. Your brain can tell you to do stupid things. Not all desires are good. I can over eat, over spend, over work or procrastinate. And that's not even going into deeper brain reflex or addiction. And then you have actual neurology.
I'm not a religious person, but I believe (sic) that behind fasting periods, there's a training around the theme of balance.