There are some older studies that showed nicotine (not via smoking, which makes sleep apnea worse) had a positive effect on sleep apnea as well due to the stimulation increasing muscular activity in the airways. Obviously lots of downsides too so it never caught on, but this seems to have a similar mechanism.