actually, fasting also has benefits for the health of the body. one of them is body detoxification. My friend who works as a doctor once said, When someone is fasting, our bodies perform a detoxification process (removing substances/toxins that are not needed by the body) optimally.
So, besides getting merit, fasting will also get health.