Because when you lose weight you lose a mix of fat and muscle, but when you gain weight you gain mostly fat if you don’t exercise (and people usually don’t because they think it’s optional) resulting in a greater bodyfat percentage (which is actually the relevant metric for health, not weight)
Because when you lose weight you lose a mix of fat and muscle, but when you gain weight you gain mostly fat if you don’t exercise (and people usually don’t because they think it’s optional) resulting in a greater bodyfat percentage (which is actually the relevant metric for health, not weight)