Fasting is widespread in religions. Can’t be a coïncidence.
Fasting does keep you little alert and productive, compared to people who aren't doing it.
Stay Hungry, Stay foolish. [Have enough enough appetite to learn more, and be naive enough to try doing hard things]
(which leads to "religious visions" etc)
I wouldn't put too much "faith" in religions authority on whats correct or not.
Also, absolutely it can be a coincidance. Your standards for truth are very poor.