How do you feel when nobody takes care of you? Left out right? That’s how your body feels when you neglect it, neither giving it healthy and nutritious food, nor a proper workout.
Your body like your mind is an intelligent being, or at least composed of cells that carry out their work quite intellignetly (and diligently). If you don’t listen to it, then it won’t listen to you when you need it to.