One of my main motivations as a leaf node in the org tree is to try to make my job the least annoying possible. Meaning spending time making sure things don't annoy me in the future (like cleaning up code, updating legacy systems, fixing bugs in ways that ensure they won't happen again).
Not necessarily so I can work less (afterall there is always work to do as a developer). But so I don't get annoyed.
Usually that ends up saving time for the company, but not always.
Not always, but overall having cleaner code with less bugs, more documentation and tests, is not just an annoyance to you. It's a money-maker for your employer as well in the long term by virtue of reducing burnout rate, decreasing onboarding time, making any improvement possible at all...