Let $X$ be the set of all real numbers with the co-countable topology. It is easy to show that a compact subset of $X$ is finite.
Is it true that every compact subset of $X\times X$ also finite? I guess yes. If $K$ is a compact subset of $X\times X$ then there is compact $A \subseteq X$ such that $K \subseteq A\times A$. Since $A$ is finite, $K$ is also finite.