You're ignoring various parts of the equation, though.
- Writing a test for a bug is part of understanding the bug, much like rubber ducking, it helps you make sure you know exactly what causes the bug.
- The better you are at writing tests, the less time it takes you to do so.
- Having tests for the code means the code is testable. In general (but not always), code being testable means it's better code (more readable, less complex, etc).
- Having tests for code means you have to worry less about breaking it when making changes. This allows work to proceed faster.
So it's not just "did adding this test prevent this one bug from re-occurring", it's "did adding tests improve our development overall". The later is far more likely to be true than the former.