Was there an issue with targeting sub-populations for clinical trials beforehand?
At an ELI5 level, if you're hoping your drug candidate will help cure disease X, you sign up patients with disease X to join your clinical trial. That's not the hard part!
(source: family member works at $bigPharma)