That's it - fasting makes sense from evolutionary biology standpoint - the food was scarce up until modern era, and thus the obesity was quite uncommon. If one was lucky enough to get a meal, that could be his only meal in a week or a few days at least - that's exactly the fasting cycles that were part of the everyday life.