This is an exercise from "Baby Rudin" and I don't understand one step of a particular proof based on the textbook's hint.
$\mathbf{Statement:}$Let X be a metric space in which every infinite subset has a limit point. Prove that X is compact.
$\mathbf{Hint:}$ By Exercises 23 and 24, X has a countable base. It follows that every open cover of X has a countable subcover$G_n$, n=1,2,3,... If no finite subcollection of $G_n$ covers X, then complement $F_n$ of $G_1 \cup.. \cup G_n$ is nonempty for each n, but $\cap F_n$ is empty. If E is a set which contains a point from each $F_n$, consider a limit point of E, and obtain a contradiction.
$\mathbf{Proof:}$ Following the hint, we consider a set consisting of one point from the complement of each finite union, e.t.,$x_n\notin G_1∪⋯∪G_n$. Then E cannot be finite. By hypothesis E must have a limit point z, which must belong to some set $G_n$;and since $G_n$ is open, there is a $\epsilon >0 $ such that $B(z,\epsilon) \subset G_n$ . But then $B(z,\epsilon)$ cannot contain $x_m$ if $m \gt n$, and so z cannot be a limit point of ${x_m}$. We have now reached a contradiction.
$\mathbf{Question:}$ I don't understand the causal relation between "z cannot be a limit point of ${x_m}$." and that z is not a limit point of E.
Question: I don't understand the causal relation between "$z$ cannot be a limit point of $x_m$" and that $z$ is not a limit point of $E$.
Response:
Note: There's a typo in the above Question, that is, the last usage of $x_m$ in the proof must be replaced by $\{x_m\}_{m \geq n}$. It's the sequence that that proof is referring to.
The facts that $B(z,\epsilon)$ sits inside $G_n$ and $x_m \notin G_n, \forall~ m \geq n$ tells us that $z$ cannot be a limit point of the sequence $\{x_m\}_{m \geq n} $.
Now mimicking the steps provided by @user417252. The only elements of $E$ that $B(z,\epsilon)$ can possibly contain are among $x_1, \cdots, x_n$ by the above argument. Let $\delta$ be the minimum of $\epsilon$ and the distances $d(z,x_i)$($d$ is a metric of the metric space in which we are working) for those values of $i = 1, \cdots, n$ such that $z \ne x_i$. Then $E \cap (B(z,\delta) - \{z\}) = \varnothing$, hence $z$ cannot be a limit point of $E$.
The following is unnecessary from the previous edit: Now $\{x_m\}_{m \geq n}$ being the subsequence of $E$, tells us that $z$ is not a limit point of $E$. (Exercise: Sequence $\{a_n\}$ converges to $a$ if and only if every subsequence of $\{a_n\}$ converges to $a$.)