They pass on their resistance genes to the next generation. Over time, the number of resistant bacteria increases.