<span>Staphylococcus aureus developed resistance to antibiotics because they evolved. This happened when bacteria were exposed to a drug, but not all of them died. The survivors reproduced and passed on their survival traits to their offspring.</span>