I think it's unfair to only blame developers for this bad culture in our industry. At every layer of the stack the same things happen. At my local government they reformed child benefits and needed a new IT system to handle it, of-course we ended up with the over-engineered enterprise architecture of micro-services running on kubernetes, communicating over an event bus with CQRS, continuous integration and continuous deployment all day everyday, managed priorities with using agile on a scrum board, for a specification that did not exist because the law hadn't been finalised until half way through the project, all to get people money on their account. But did anybody in charge bother fixing the situation where their are 5 different commercial and not-for-profit institutions handling the money, acting as intermediaries
and thus profiting off the tax benefits for people to help them raise their children, No.