What is the intuition for the following theorem of Atiyah?

> Let $X$ be a connected smooth projective curve over an algebraically closed field $k$. Then a vector bundle $L$ on $X$ admits a connection if and only if the degree of every direct summand of $L$ is divisible by the characteristic of $k$.