It occurs when bacteria develop the ability to survive antibiotics that once killed them.