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.