Mostly profit to pay back the investors for billions of dollars in research and development, and baked in liability insurance.
Some of it also goes to pay for the R&D of other drugs that never make it to market.
Some of it also goes to pay for the R&D of other drugs that never make it to market.
https://www.google.com/amp/s/www.washingtonpost.com/amphtml/...
So if pharma companies cut out all of their sales and marketing, they'd have even less revenue than they do today. And that would lower R&D spend.