You can make your own medicine at home in many countries, but safety testing takes years and costs hundreds of millions. After years of testing, when the result is good and the inventor is lucky, the inventor will have just a few years of protection to recoup costs.
How you can improve that without patents?