I thought it was fairly established that bacteria, fungi, yeasts, et al form biofilm matrixes (comprised of polysaccharides, microbial cells, cellular excretions, etc.)
as a survival mechanism, and to further attract bacteria, fungi, yeasts, etc. (colonies), and is the essence behind anti-fungal drug resistance.