Proof (Lebesgue number lemma)

Suppose not. Then for all $n\in \N$, setting $\epsilon=1/n$ gives some $x_n\in X$ such that $B_\epsilon(x) \not\subseteq U$ for all $U\in \mathcal{U}$.

By sequential compactness, there exists a subsequence $\set{x_{n_k}}$ that converges to say $x\in X$.

Since $\mathcal{U}$ is an open cover of $X$, let $U\in \mathcal{U}$ such that $x\in U$, and using the fact $U$ is open, let $\delta>0$ be such that $B_\delta(x)\subseteq U$.

Then since $x_{n_k} \to x$, for sufficiently large $k$ ($k>2/\delta$), $x_{n_k} \in B_{\delta/2}(x)$, so $$ \begin{align*} B_{1/n_k}(x_{n_k}) \subseteq B_{\delta/2}(x_{n_k}) \subseteq B_\delta(x), \end{align*} $$ which is a contradiction.