Sure, but how can you fearlessly refactor the code without having automated tests in the first place for example?
Technical debt accumulates interrest.
Technical debt accumulates interrest.
Or you start adding unit tests, which may be harder than rewriting
Doing a version 2.0 is easier (but maybe harder) than it looks