Why Do Bacteria Have Slime Capsules?

Why Do Bacteria Have Slime Capsules? It protects the cell from physical and chemical attacks such as those found when food surfaces or preparation equipment are cleaned. The ‘stickiness’ of the capsule promotes cell adhesion to surfaces, a survival advantage. In addition, the capsule protects the cell from phagocytosis. Do all bacteria have a capsule?