The only scenario where patents make sense is when a research group spends significant resources to invent something, and then publishes the invention with all the necessary documentation to make use of the invention, then they should be rewarded with licensing fees for their contribution, so they can continue and hopefully make more inventions.
Edit: When I say research group I'm not just thinking of non-profit universities. A research group could also be a group within a for-profit company that develops something, a for-profit institute, a joint industry working group, etc.