People with sleep apnea who were exposed to positive airway pressure therapy had a reduced risk of being diagnosed with dementia.