Taking a deeper dive, Intermittent or time-restricted fasting and watching the type and amount of foods you ingest can have very important health benefits to the body.
If food intake is not moderated, it opens a door to a myriad of physical and spiritual problems. A full stomach causes laziness, distorts thinking, brings sleep and impedes worship.
Allah claims and owns the practice because it is under his direct supervision. It is also the only form of worship conducted without any public show.