There was a question asked here around why the t-test is appropriate for hypothesis testing linear regression coefficients: Why is a T distribution used for hypothesis testing a linear regression coefficient?. The answers on the page focus on demonstrating that if you take the deviation of the estimated coefficient, $\hat{\beta}$ from the true coefficient, $\beta$ and then divide by the residual sum of squares (RSS), then the distribution of that number is a t-distribution.
But why should I take that for granted? Why use that particular test statistic and not another? Is that particular test statistic special? Is it uniformly most powerful (UMP) among its peers?