He is probably being treated for SLEEP APNEA.
Sleep apnea is a sleep disorder that occurs when a person stops breathing during sleep. To prevents this patients can use nasal masks, which blows air into the nose while sleeping.
This can happen a few times of even hundreds of times stopping the whole body from getting enough oxygen.