Way too many variables to consider here and the human heart/mind/body is much more complex than this, and at the same time much more simple.
To give one example.. by time restricted eating you are breaking the cycle of eating out of habit when you are not even hungry.. or eating because you crave a certain taste or sensation in the body (as opposed to actually being hungry). You are training the mind/body out of these behaviours so that during the times when you are allowed to eat you are trained not to eat unless actually hungry, for example.
I am sure there are many other things to consider other than just calories in .. calories out - such as adapting the body to use stored fuel .. rather than expecting a constant payload of calories to consume.. etc. etc.
Peace out.