Fasting has been practiced in many religious traditions for centuries, although the rules and purposes can be very different. For believers, fasting is generally not just about avoiding food or drink. It can be connected to discipline, worship, self-control, gratitude, reflection, compassion for others, and spiritual growth. In that sense, the physical aspect of fasting is only one part of a much broader religious practice.
From a health perspective, the effects of fasting can vary depending on the type of fasting, how long it lasts, what someone eats afterward, hydration, sleep, age, and overall health. Some forms of fasting may influence eating patterns and metabolic processes, but that does not mean every fasting practice is automatically healthy for everyone. Someone who has specific health needs may require medical advice before changing their eating or drinking routine.
I think this is where the spiritual and physical perspectives can be understood separately but also complement each other. A person may fast primarily for religious reasons while also becoming more conscious of their habits and self-control. But fasting should not be treated as a universal health treatment or competition over who can endure the longest. Religious guidance and individual health needs both matter, and people with medical conditions should seek appropriate professional advice before fasting.