Proof (no invertible and compact operator in infinite-dimensional space)

If $T \in \mathcal{G}(X) \cap \mathcal{K}(X)$, then by the ideal property of compact operators, $\id = TT\inv$ is also compact. However $\overline{\id(B_X)} = B_X$ is not compact in an infinite-dimensional space..