Let $\mathbb{P}^n$ be the projective space of dimension $n$ with the Zariski topology. Then the diagonal of $\mathbb{P}^n \times \mathbb{P}^n$ is clearly a closed subset. Since a topological space $X$ is Hausdorff if and only if the diagonal of $X \times X$ is closed, we conclude that $\mathbb{P}^n$ is Hausdorff. In fact, the above argument extends to any quasi-projective variety of $\mathbb{P}^n$.
Question: I find this conclusion strange, since it is known that in general the Zariski topology does not give rise to Hausdorff spaces. Am i missing something here?