When people are essentially incarcerated, when all intake is weighed and measured, they will lose weight if the calories in their diets are reduced — regardless of the composition of the diet.
The “calorie is a calorie” argument is widely used by the processed food industry to explain that weight loss isn’t really about what you eat but about how many calories you eat.