
Based on Mishnah Torah I: Book of Knowledge, the Laws of Character Traits, Ch. 4
It is an obligation to ensure that our souls stay comfortably and functionally and happily inside our bodies. Illness is not good for maintaining awareness and focus on our mission here on earth. This is why, staying healthy is absolutely vital and obligatory.