>Financially it makes zero sense.
Innovations in funding, protection of secrets etc do happen time to time, so even if I cannot give you satisfying answer now, it does not mean such answer does not exist. It took thousands of years to invent modern corporation and stock exchange. Cryptocurrencies are recent invention. Imagine some sort of pooled research, where all competitors/partners agree to compete only after the discovery, i.e. in production efficiency and costs, marketing etc, with some . Imagine some clever chemical engineering, where a pill is such a mixture of acting substance and harmless components that reverse engineering is too hard to complete without comparable budget. Maybe it will be something completely different that we will find obvious only after it is discovered.
Financially it makes zero sense.
And if the logic is - well the government can fund the research (which is a huge stretch since Pharma R&D is several multiple of gov't funding today), ok, but then you end up paying for the medicine through taxes instead.