Yeah it’s not universally true.
But for some people, there are low hanging fruit like “cut out 4 Pepsi’s a day” (600 calories).
If you are already eating reasonable healthy and still gaining weight, then adding more exercise can be easier than trying to skimp on food.