Bacterial gene loss as a mechanism for gain of antimicrobial resistance