Answer:
Random mutations can occur in the genes of a bacterium so that they are less affected by antibiotics. This means that they can multiply and pass on their immunity. Also, if a patient doesn't finish their course of antibiotics, the bacteria are more likely to become resistant to them as not all of them will be killed.