Answer:
Evolution.
Explanation:
It might have acquired the ability to cause disease due to evolution. Due to evolution, the harmless bacteria can turn into infectious pathogens that cause diseases. Evolution is the change in the characteristics of a species over several generations due to the process of natural selection. This evolution in the bacteria occurs due to changing of environmental conditions which changes the genetic makeup of that harmless bacteria and turn into infectious pathogen.