Being compact is the next best thing to being finite.
As seen for example by the fact that the (uniform) limit of a sequence of continuous real-valued functions on a compact space is continuous. Or the even more down to earth example: The extreme value theorem.

