In the same way that most of the body relaxes during sleep, that goes for your sphincter muscles as well. Luckily, our sense of smell is diminished at night, so you (shouldn’t) even notice.