This is the way with modern software engineering, especially in the industry. It comes from the basic fact that:
- Companies want to get code for free from the internet - someone else already wrote that code, let's use it for free and have better profit margins!
- Companies do not want to spend time and effort vetting that free code, as that would make it... well, not free. That would require manpower (perhaps unless you trust AI to do it these days...) and that's money.
Basically they want to eat their cake and have it too. This applies to all modern package managers for modern languages that make it easy to distribute your own code and consume free online code.
I doubt the industry will ever mature to a point where this will stop, as the tradeoff of getting free code with no work is just too good for most companies, especially the smaller ones.