The type of food you eat can determine your mouth's bacteria biome, which none of us had any fucking way of knowing, other than pure chance.
Streptococcus Mutans trives on refined sugars that are available to us in modern times. They create a biofilm around your teeth that traps the bacteria itself, along with it's acid byproducts.
They eventually wear down your enamel, and other bacteria start feeding on the softer dentin within. The acidic environment kills off the original Streptococcus Mutans bacteria.