There are some cardinal sins within the annals of software development in the workplace. The relevant two here are:
- Do not build a scoreboard for productivity
- Do not equate keystrokes with effort or value rendered
These create perverse incentives that can really screw everything up, including creating permanent damage to company culture, products, and productivity. Anytime you see these things done, it's because you have (or are) lazy-ass management.
Edit: I also just learned that this is an application of Goodhart's Law.