I agree with you, but one could argue that R&D money comes from a desire to patent.
This is why we (at least used to) have things like wide-sweeping federally funded research grants aimed at advancing science and technology in areas and ways short-sighted profit-seeking R&D can seldom touch
Not discovering a thing is almost better than someone discovering it and then patenting it, imo. It's negative progress.