For instance, tackling existing bugs or documenting code often seems to be undervalued compared with writing new code, when writing new code often just introduces new bugs and requires new documentation. If you start tracking bugs, people will benefit from creating and tackling easy bugs, while tackling harder bugs is effectively a punishment.
Goodhart's law: https://en.wikipedia.org/wiki/Goodhart%27s_law