You need a laundry list of nutrients, and if your body is short of any one of them, it'll crave something that might have it. If it has it in insufficient density, it won't care that it needs to also get an extra 500 Kcal along for the ride - it needs to satisfy each item on the list.
I've seen this behavior in both cats and people -- feed them better quality food, and their cravings & weight go down as the full set of nutrients is found in fewer calories.
(Different topic, also very big on intermittent fasting, ensuring that there are frequent periods where the body recovers energy from fat stores)
I noticed one study a long time ago just about flavor. Basically, rats, being fed standard rat chow, with nutrients and calories kept constant, both groups had full access to the food. Group A had one flavor, Group B had six flavors. Group B gained a lot more weight. So, merely restricting flavor choice will reduce your inclination to eat, and conversely, food engineers creating foods with lots of flavors will increase food and eating...
Another way to look at it that I've found effective: think of food cravings as an adversarial agent. Your body is blackmailing you: if you give me food, I'll make this craving go away. Trick is, the food you're probably craving -- chips, soda -- don't make the craving go away. They make it worse. Once you notice that you're body doesn't actually make good on its promises to make the cravings stop it's easier to not give in to its demands. And that actually makes the cravings stop. It's no different than dealing with any other bully.