I believe because when you're sleeping you are not building up saliva so your mouth gets dry, salive washes away bacteria that builds in your mouth when you sleep its dry so nothing is washing away. Even if you brush before bed and use mouth wash and scraped your tongue lol.