The most common cause of sleep apnea is anything that obstructs your airways. Being overweight does that and is far and away the most common cause of sleep apnea.
This is such an often repeated trope, but it's not at all as clear cut as that. Sleep apnea *causes* weight gain, the arrow of causality can go both ways.