You are fitting an equation of the form yt = Ayt-1 +B.
[ yt = A × yt-1 + B ]
Performing a regression gives least-squares estimates of A and B. This is really just an AR(1) model, but if A >1, it is not stationary (random walk) and you need to first difference. What they are doing in their example is showing that the series have an upward linear trend and so needs to be differenced.
[NEAS:
Jacob: What if A = 1?
Rachel: If A = 1, the process is not stationary. It is a random walk, and we take first differences.
Jacob: If A = 1 and B = 0, isn’t the current value also the mean?
Rachel: If A = 1 and B = 0, the current value is the one period forecast. The process is not stationary and does not have a mean. The mean is B / (1 – A), which is not defined if A = 1.]