It's a long game for the business. It can be a long or short game for the programmer.
Business software has multiple engineers working on it, but to do that the code needs to be clean enough for multiple engineers to work on it.
It's the goal of some engineers to write clean code for the benefit of the business.
It's the goal of some engineers to slap together something new and shiny, present it to management and get it approved for the benefit of their careers.
Engineers goals sometimes align with the business and sometimes don't.