yep.
Causes of this I've seen:
- sunk cost fallacy
- not spending enough time to understand the codes behaviour (and its side effects)
- code being written so it becomes hard to understand its behaviour and any side effects.
- trying to "win the PR game" by avoiding refactoring
- giving up on refactoring because thinking is too hard