Just like every other creature, bacteria have evolved creative ways of getting around. Sometimes this is easy, like swimming ...
Nature follows mathematical rules and creates repeating patterns across completely different organisms and environments.