If I am given a few observations with two variables (let's just say servicetime and desktops) I can use the following to find the confidence interval: $CI = \bar{y} \pm t^{(n-1)}_{(\alpha/2)} \cdot \frac{s}{\sqrt{n}}$, where $\bar{y}$ is the mean, $n$ is the number of observations, and $s$ is the standard deviation.
Now let's say we still have the same data but we have an extra observation where one of the variables are known and the other variable is estimated in the model, and we want to find the confidence interval for the estimate of the mean servicetime given desktops=$9$. So here our regression would look like this, $\text{servicetime}=\beta_0 + \beta_1 \text{desktops}$. To find the confidence interval we have to use $CI=\hat{y} \pm t^{(n-2)}_{(\alpha/2)} \cdot s \cdot \sqrt{DV}$ where $DV$ is the distance value and this time $s$ is the root mean square error.
My question is why do we use the root mean square error in this situation instead of the standard deviation? What is the relationship between the standard deviation and the root mean square error?