And without knowing the specifics, there can be a lot of value from continuing to produce those sorts of things, if it's within reason. I mean shit they probably spend more on ads saying how great they are than it would cost to actually be great (by saving lives with cheaper meds)
If a company can make X% return on capital (researchers, equipment, marketing, regulatory engagement, office space etc) working on communicable diseases, but Y% >> X% doing something else, a responsible steward of somebody else's pile of money is supposed to direct the capital towards Y.
If the company is spending $1B/yr for a 1% return in that division, but the return on bonds is 5%, the financial answer is to liquidate, and put the cash in bonds.
My claim was a bit too strong. But I think my general point stands.
Or if they do, they run out of money and have to stop.
There is no "should" here. Just a description of how the world works.