One of the fundamental theorems in functional analysis is that if $X$ is a Banach space (say over $\Bbb C$) with a compact closed unit ball, then $X$ is finitely dimensional.
The usual proof is by assuming $X$ is infinite dimensional, and constructing by induction a sequence of vectors on the unit sphere which are not only linearly independent, but also have distances $>\frac12$ from one another.
But you can also prove this from automatic continuity. Namely, if every linear functional $f\colon X\to\Bbb C$ is continuous then $X$ has a finite dimension. If $\{v_n\mid n\in\Bbb N\}$ are linearly independent and lie the unit sphere, the function $f(v_n)=n$ can be extended to a linear functional on $X$. It is unbounded and therefore not continuous.
Can you prove directly from the assumption that the closed unit ball (equiv. the unit sphere) is compact that every linear functional is continuous?