I think many people dramatically overestimate how profitable drug companies are. The average net profit for a brand-name drug manufacturer is actually less than 30% (source). They’re about as profitable as tech companies.
That’s still quite profitable, but I suspect that if you were to limit them to 30% net profits on their most successful blockbuster drugs, their overall net profits (which have to compensate for the R&D that goes into failed drugs) might not even be positive.