But that isn't really where the biggest benefits lie.
When you come back to that code a year later and have to make changes to it, but have forgotten how it works, having all the tests pass with good coverage provides a significant (but not absolute) level of confidence that you didn't break anything.
Given that so much development time is spent editing/updating code, rather than writing it from scratch, this can be a huge speedup in productivity.