How can bacteria survive in your mouth when you are eating, drinking, and producing saliva throughout the day and these actions would ‘wash’ the bacteria away?

Your mouth contains thousands of bacteria. How can bacteria survive in your mouth when you are eating, drinking, and producing saliva throughout the day and these actions would ‘wash’ the bacteria away?