Why do we use T distribution in linear regression?
The thing I know is- We use the T-distribution when estimating the mean of a normally distributed population in situations where the sample size is small and the population standard deviation is unknown.
In the case of linear regression, I understand that sometimes population standard deviation is unknown so it's understandable to use a T-test. However, when we talk about the distribution of the population to be normal, as far as I know, in linear regression only the errors are normally distributed and not the parameters. So, I am confused regarding are we using T-test in linear regression because the errors are normally distributed? and if yes, how can the errors being normal could be translated as the whole population being normal which then lead us to use the T distribution.
Edit- According to the book "Econometric By Examples" written by Damodar Gujrati-
"It is very important to note that the use of the t and F tests is explicitly based on the assumption that the error term, is normally distributed. If this assumption is not enabled, the t and F testing procedure is invalid in small samples, although they can still be used if the sample is sufficiently large (technically infinite)".
Can someone please tell me why this assumption of normality is required in order to perform the T test?