In simple linear regression two things go on.
First, you are expressing the mean value of [tex]Y[/tex] as linear function; this essentially says you are splitting [tex]Y[/tex] itself into two sources, a deterministic piece (the linear term) and a probabilistic term (the random error)
[tex]
Y = \underbrace{\beta_0 + \beta_1 x}_{\text{Deterministic}} +\overbrace{\varepsilon}^{\text{Random}}[/tex]
When it comes to the ANOVA table, this also means that the total variability in [tex]Y[/tex] can be attributed to two sources: the deterministic portion and the random portion. It turns out that in this approach the variability in [tex]Y[/tex] can be broken into two sources. It is customary to do this with the sums of squares first. The basic notation used is
[tex]
\begin{align*}<br />
SSE &= \sum (y-\widehat y)^2 \\<br />
SST & = \sum (y-\overline y)^2 \\<br />
SSR & = SST - SSE = \sum (\overline y - \widehat y)^2<br />
\end{align*}[/tex]
here
SST is the numerator of the usual sample variance of [tex]Y[/tex] - think of it as measuring the variability around the sample mean
SSE is the sum of the squared residuals - think of this as measuring the variability around
the regression line (which is another way of modeling the mean value of [tex]Y[/tex], when you think of it)
SSR is measures the error between the sample mean and the linear-regression predicted values
Every time you measure variability with a sum of squares like these, you have to worry about the appropriate degrees of freedom. Mathematically, these also add - just like the sums of squares do.
The ordinary sample variance has [tex]n - 1[/tex] degrees of freedom. Perhaps think of this because, in order to calculate this, you must have done [tex]1[/tex] calculation, the sample mean. Thinking this way, [tex]SSE[/tex] must have [tex]n - 2[/tex] degrees of freedom, since its calculation requires two pieces of work - the slope and the intercept.
This leaves [tex]1[/tex] degree of freedom for [tex]SSR[/tex].