It really isn't.
You could eat a red meat diet completely and not gain a single pound. As long as you ate what you could burn. Even without exercise.
Normal weight gain occurs two different ways. When you eat over the amount your body can burn. (which we all know).
And when spikes in the bodies insulin levels cause the cells to store things as fat.
Sugar/Carbs are the main enemy.