Metabolic syndrome causes both weight gain and diabetes. They are both effects with a common cause.

Which is why most of the things that fix one tend to fix the other.