Suppose that you don't have $\lim_{n\to\infty}x_n=x$. Then there is a $\varepsilon>0$ such that, for every $p\in\mathbb N$, there is a natural $n\geqslant p$ such that $d(x_n,x)\geqslant\varepsilon$. So, you can defined a sequence $(n_k)_{k\in\mathbb N}$ as follows:
* $n_1$ is such that $d(x_{n_1},x)\geqslant\varepsilon$;
* $n_{k+1}>n_k$ and $d(x_{k+1},x)\geqslant\varepsilon$.
Then the sequence $(x_{n_k})_{k\in\mathbb N}$ has a convergente subsequence (since the space is compact), whse limit cannot be $x$. This subsequence is a subsequence of the original sequence, but its limit is not $x$.