That’s why they often make good developers.
Good developers don’t just write easy-to-write code. They write code that is easy to maintain and efficient to run - and oftentimes that requires forethought, a willingness to rewrite when a misstep is made, and above all else the willingness to tinker/learn effectively.
Source: I am a terrible developer and a very lazy person, and I have had to maintain lots of poorly-written code (some of it my own).