Simple answer, too many calories.
Long answer, complex disease process, with many alterations in hormones and neurotrasmitters, genetic component, behavioral component, vicious cycle with other comorbid conditions, ex, it can make sleep apnea
worse, having sleep apnea often causes weight gain
. Usual answer from health professionals, eat right and exercise
is often not satisfying with good reason.