Each population of bacteria will contain a few that are resistant to antibiotics. If bacteria is exposed to sub lethal doses of antibiotics, those that a resistant will increase and those that are sensitive will decrease.
Over prescribing means lots of bacteria is exposed to sub lethal doses of antibiotics and the percentage of antibiotic resistant bacteria in a population increases. This increases the chance of being infected by antibiotic resistant bacteria.