I like saulspatz' answer because it is very hands-on. I would like to offer another perspective, one based on the fact that linear transformations are characterized by their ranks, up to choice of bases in domain and codomain. The key is in this proposition:
Proposition. Suppose $T\colon V\to W$ is a linear transformation with $\dim V = n$ and $\dim W = m$ and $\operatorname{rank} T = r \leqslant m$. Then there are bases $v_1,\dots,v_n$ for $V$ and $w_1,\dots,w_m$ for $W$ such that the matrix for $T$ with respect to these bases is
$$
\mathcal M(T,v_1,\dots,v_n,w_1,\dots,w_m) = \begin{pmatrix} I_{r\times r} & 0_{r\times n-r} \\ 0_{m-r\times r} & 0_{m-r\times n-r}\end{pmatrix},
$$
where $I_{r\times r}$ is the $r\times r$ identity matrix, and the various $0_{\ast\times\ast}$ are the zero matrices of the corresponding dimensions. As a quick corollary of the proposition, we can read off of the matrix for $T$ in these bases that
\begin{align*}
\operatorname{rank}T &\stackrel{\text{def}}{=} \dim \operatorname{image}T = r, \\
\operatorname{nullity}T &\stackrel{\text{def}}{=} \dim \ker T = n-r,
\end{align*}
and hence gain the rank-nullity theorem:
$$
\dim V = n = r + (n-r) = \operatorname{rank}T + \operatorname{nullity}T.
$$
For a quick proof of the proposition, keeping things as "coarse" as possible for intuition's sake, because the rank of $T$ is $r$, take vectors $v_1,\dots,v_r$ in $V$ such that $w_1 = T(v_1),\dots,w_r = T(v_r)$ span the image of $T$. Extend $v_1,\dots,v_r$ to a basis $v_1,\dots,v_r,v_{r+1},\dots,v_n$ for $V$ and $w_1,\dots,w_r$ to a basis $w_1,\dots,w_r,w_{r+1},\dots,w_m$ for $W$. With respect to these bases, we quickly determine
$$
\mathcal M(T,v_1,\dots,v_n,w_1,\dots,w_m) = \begin{pmatrix} I_{r\times r} & \ast \\ 0_{m-r\times r} & \ast\end{pmatrix}.
$$
Because the rank of $T$ is $r$, and the first $r$ columns of the matrix for $T$ are linearly independent, we determine that (possibly after some row and column operations) the two $\ast$'s in the above matrix for $T$ have to be the zero matrices of appropriate dimensions, hence the proposition.