Maybe patents is a bad idea and should be removed.
The idea was basically "Let's give some legal protections to investment in research so someone can't just steal it the second you publish it". As it is common, the idea was fine, it even somewhat worked in few places, but applying it everywhere turned out to be silly. We have medical companies changing an atom here in there to make "same" but legally distinct drugs, and software people patenting half a day of work of…
There is another model for innovation, however, and that is the government research grant model. The government taxes wealth, the taxes accumulate into massive funds, government experts hired from the field identify compelling research topics that would benefit the collective, funds are made available and other researchers submit proposals of what they would do with that money, government experts choose the most promising proposals, money goes to things based on research merit versus the product or technologies potential to take money from people's pockets.