It could be that the author was thinking about sequential compactness: every sequence of elements of the space has a convergent subsequence (with its limit also in the same space).
For metric spaces, sequential and usual compactness coincide:
That's of course also true of a compact space, the author was being imprecise there. What they meant was definitely sequential compactness, as mentioned by a sibling comment.
For metric spaces, sequential and usual compactness coincide:
https://en.m.wikipedia.org/wiki/Sequentially_compact_space