Which of the following correctly explains how some bacterial infections can become difficult to treat with antibiotics?