This is most likely because of the process of natural selection. Bacteria with a resistance to antibiotics will be more likely to survive, reproduce, and pass on their resistant trait. As more bacteria with this trait are produced, the frequency of antibiotic resistance in the population increases.