The cost of creating artificial exclusivity, enforced by the state against natural human learning/discovering capabilities, is even higher.
Patents may stop someone from on purpose or accidentally copying someone else invention, but that isn't stopping discovery.
There's a reason that software and algorithms weren't deemed patentable for a long time (and still aren't in certain jurisdictions - at least on paper).