Because writing code that passes a test is different to passing the test while also noticing and performing a refactor.