Functional antibiotic resistance is costly to maintain when there is no presence of antibiotics that would improve the fitness of these sub populations. One way to get around the issue of antibiotic resistance is to just cycle through different antibiotic compounds. A population will not maintain resistance to compounds not in its environment for very long.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6707769/