We can use do/did to emphasise the truth of something:
"You didn't finish it."
"That's wrong- I did finish it."
In the answer, 'did' is used to show that the first speaker was wrong.
- For Teachers