In the example on your post, this is just the definition of the limit.
I believe you are referring to cases like this, where the author says:
Taking supremum over $x,y\in\operatorname{cl}(E)$, one has that $$\operatorname{diam}(\operatorname{cl}(E))=\sup_{x,y\in\operatorname{cl} E}d(x,y)\leq\operatorname{diam}(E)+\varepsilon.$$ Since $\varepsilon>0$ is arbitrary, it follows that $$\operatorname{diam}(\operatorname{cl}(E))\leq\operatorname{diam}(E).$$
In the general case, suppose we want to prove that two quantities, say $a$ and $b$, are equal. In other words,
$a-b=$.
But I can only proof that, for every $\varepsilon >0$,
$$|a-b|\le \varepsilon$$.
But $|a-b|$ is a non-negative real number that is smaller than any positive real number, because we can pick $\varepsilon$ as small as we want. The only number that satisfies these conditions is $0$. Therefore, $|a-b|=0$.