Answer:
Antibiotic resistance is a consequence of evolution via natural selection. The antibiotic action is an environmental pressure; those bacteria which have a mutation allowing them to survive will live on to reproduce. They will then pass this trait to their offspring, which will be a fully resistant generation.
Survival of the Fittest (Natural Selection):
When bacteria are initially exposed to an antibiotic, those most susceptible to the antibiotic will die quickly, leaving any surviving bacteria to pass on their resistant features to succeeding generations.