You're describing two legitimate worlds, the Ivory Tower and the Marketplace, let's call them for short, but I don't think the error is conflating them. I think the error(s) arise in the
intersection between the two realms. The Internet was a-commercial or even anti-commercial at first (having gestated in the Ivory Tower) and retrofitting it for commerce and industry has been, um, a wild ride. Kind of a gold rush.
Copying and running code is (effectively) free, developing, maintaining, and auditing code is still expensive. Folks who want to use software without paying the costs get what they pay for, eh?
I feel that if there's anything the community is doing wrong, it's in the emphasis on new and shiny rather than mature and stable. I feel we should be entering a "contractile" stage of (global IT) development, with consolidation and convergence of software and hardware replacing the wild burgeoning and rampant growth of complexity.
"Like, complexity is an existential threat, man..."