High fat and high protein provides high satiation which prevents the over consumption of calories. I've also lost significant weight on a keto diet. I've also done it with intermittent fasting and eating anything but keeping my calories below my required calorie intake.