Two key asymmetries. The first is evolutionary.
Curing cancer involves battling evolution head-on: malignant cells that escape treatment often proliferate and kill the patient.
Pandemic agents are aided by evolution: the most transmissible will spread.
That's because finding cures for cancer with the help of AI will involve thousands of the best biomedical and computer scientists in the world, with lots of funding, lots of computing resources, lots of open information exchange, and lots of clinical trials.
On the contrary, making a bioweapon will have to be done in secret to avoid detection, with a few not-so-competent people (you won't get semi-competent PhDs, let alone world-class scientists), and shoestring computing resources.