Good jobs in pharma pay pretty well and are nearly competitive with SV (I've worked for Genentech, Google, and a small biotech startup). Pharma has no lack of smart people, but modern pharma is really just a rent-seeking entity (goal is to maximize profit on fairly small stable of well-defined drugs) while maintaining a portfolio of investments in smaller pharma and biotech companies who do most of the innovation, while pharma handles ads, sales, distribution, manufacturing, etc.
Creating cures for diseases is a systemically complex problem and it's not clear that "more smart people" really is the answer, versus "do a better job". In many ways, the smartest folks in the room are the least capable at moving drug discovery forward- smart people want to work on cool new problems, explore nifty theories, but don't want to deal with the day-to-day challenges of reliably identifying new drugs.
I left drug discovery because the systemic challenges were too great; it's not like you can be smart or work hard and solve a problem. You have to play a very long game, do a bunch of tedious and boring things, and master politics to get a drug to market.
One thing to note is that some drugs really do cost a lot to R&D and to manufacture, and I think those drugs should reflect those costs; but many companies overprice their drugs to maintain absurdly high profit margins. That doesnt' translate into larger investments in future drugs.
Gilead has been very good at this, but after working for a biotech startup that had a deal with Gilead to work on NASH, I've become extremely skeptical. This is a "disease" where nobody can agree that it's actually a disease, and worse, it could be far more easily treated using simple obesity reduction techniques, instead of spending billions to create a drug that helps people who are extremely sick.