You’re not actually thanking your interviewer; you’re continuing the conversation and strengthening the impression you made.