That's an easy one. a carnivore diet like that is satiating, you can't really over eat.
Processed foods aren't as satiating, and you can over eat easily.
If you're not satiated, you're going to continue to eat, thereby consuming more calories. But if you actually control for calories against those 2 diets, you can lose weight on McDonald's, you're just going to be hungry