The issue is that the recent growth in the software field has caused people that would otherwise major in something else, and aren’t really interested in software, to be your coworkers and they don’t care about doing a good job. There are some areas of software which would be benefited (lower cost over time) to apply an engineering mindset. That’s not what happens with agile. The whole ethos is about being able to change the design around, shipping MVPs and quick iteration. In hardware it has to be correct when you ship it , leading to a more methodological approach. As a result, some software work in comparison to hardware work can come off as sloppy.
Define recent? I remember "too many new people are just chasing money in IT" already being a well-established trope 25 years ago, long before Agile or most of the modern stacks were even a thing.