Sleep apnea can indirectly cause weight gain, but obesity—particularly excess fat on the neck—is the main controllable risk factor for obstructive sleep apnea, so it’s primarily the other way around.