This is all caused because no-one understands the purpose of quality in software
Low quality = cascading bugs, issues, slow to iterate and add or change features
This is just as true for human written as it is for AI
Instead we have everyone giving up on code quality as if it was just "beautiful code" perfectly indented that was only there for people to ooh and aah at
Low quality = you will sooner or later be writing a "We take security seriously" letter and buying credit monitoring for all your customers.