When the Queen is placed, it becomes Black's turn. Black is not in check, but is in a situation where there are no legal moves for Black to play (his pawns cannot advance, and the king has no legal squares to land on. Because of this, Black can claim a draw instead of a loss.