Bacteria developed a resistance to antibiotics because the bacteria adapted so it can't be affected by antibiotics humans contribute because they should keep taking there pills even if they think there felling better within that time period thats when the bacteria adapted -sorry if I'm wrong but ngl thats how my science teacher described it lol