To play the devil's advocate: Is it though?
Especially recently we've seen the widespread acceptance of copyright and license laundering through large machine learning systems such as copilot and chatgpt, backed by enough microsoft laywers to prevent meaningful push back from the copyright owners. They'll output verbatim copies of what was previously copyrighted code.
If it is true that software copyright can be cleaned away in such a fashion, maybe patenting the algorithm itself actually is necessary to avoid big tech companies like microsoft from forcibly strip mining the ideas of independent creators.