Viewers think those ads are aimed at them, but many of them are for such specific versions of a disease, that the viewership must be extremely tiny. They wouldn't spend that kind of money to reach such a miniscule audience.
The ads are really aimed at the doctors themselves. A doctor with a specific specialty may have several patients that the drug might help. That's whose attention they are trying to get.