IIRC the reason for this is that antibodies are actually in your saliva, which moves around your mouth much less while you're sleeping. Thus, bacteria have a more favorable environment at night.
And don’t use Listerine etc, their alcohol content is way too high and leads to cancer over time apparently.