A long-standing mystery in cancer treatment is how tumor cells so often become resistant to drugs, even ones they have never encountered before.