You've got to remember the entire spy game is essentially a game of trying to navigate the 'you know that I know that you know that I know...' mire, and counterintelligence is no exception.
Also, this happens on occasion, particularly when it would threaten larger undercover...