There is a biologic switch that animals use to store fat. Some foods activate the switch and some don't. The more calories you eat, the more you're going to gain weight. High fat foods which don't activate the switch are great for gaining weight. But like if you're in a keto diet and it's not activated, you can eat the fat and still lose weight.