Pests have (built in) variations in terms of their ability to survive in a given environment, a change in the environment, in the form of an antibiotic would bring out (select) , that part of population that can survive under new environment, in due course of time the variant/ resistant population reproduces/ outgrows, the other, and appears as an antibiotic resistant pest species