If you create liability traps, the price of everything goes up and many things do not get made at all.
It's like saying that tents shouldn't exist and people shouldn't use bicycles even though they are great tools for certain jobs.
Nobody wants to pay for space shuttle levels of software engineering. It costs a lot in labor time to produce less results.
This is just a thought (and may be unpopular): practices differ wildly from one company to another, and between enterprise software vs hacky side-projecty node apps, nonetheless, maybe it's time to standardize software good practices across the entire industry and enforce them, making them not just "good" practice, but mandatory practice.