Bacteria can evolve resistance to life-saving drugs they've never seen. Here's how.