Fasting can be very good for the body.
Even intermittent fasting provides benefits.
For a lot of people it gives the body a break processing food and drink, and takes that energy/resources and uses it for repair and healing purposes.
In lab trials, they have even been able to demonstrate re mylination of the nervous system .