Why would someone suddenly start coughing under heavy sedation?

Aspiration. The stimulation of your upper airways is a very strong stimulant. With sedation, your ability to manage the liquid in your mouth like saliva is compromised and can fall into your trachea. This can provoke a very strong coughing reaction.