Everything leads back to either lifestyle or genetics.
Or medications. Some drugs and steroids lead to weight gain.