Why is a least-squares line given this name?

Answer:
Explanation = The Least Squares Regression Line is the line that makes the vertical distance from the data points to the regression line as small as possible. It's called a “least squares” because the best line of fit is one that minimizes the variance (the sum of squares of the errors).
Step-by-step explanation:
I DON'T HOW ABOUT THE ANSWERS.
BUT I CAN HELP THIS MUCH..
I HOPE THIS HELPS....
THANK U!