You're thinking with your engineering brain.

For corporations, sales, probability and feature release cycles take priority over maintainability or code quality. AI is allowing businesses to build features faster than ever, so management is happy.

By the time maintainability issues hit, they've either pivoted, raised more capital or can throw money at the problem.

It's a good thing structural and civil engineers don't design infrastructure this way.