The only way to lose weight (other than amputation and the like) is to take in less calories than you burn. If what you say is correct it just means that in those cases the intermittent fasting causes higher energy expenditure.
Exercising the same doesn’t imply their bodies expend the same amount of energy. One body may be more efficient than the other, for example producing less excess heat. Exercise also isn’t the only factor in energy expenditure. People have different basal metabolic rates (how much energy your body consumes when you’re doing nothing), and changing your diet, your sleep, your mood, etc., can affect it, as can stress and cognitive activity. Finally there’s differences in how efficiently people extract energy from food.
However, for any given individual, if they want to reduce weight, they can either reduce their energy input or increase their energy output, or both. There’s just no other way.
Can you be a little more specific? Wikipedia seems to mostly say that the science is still a work in progress, and at least I don't see much support for the claim that it reduces weight while allowing for the same calorie consumption.