I read a few years ago that standardized tests originated because kids from the more prestigious prep schools and high schools got most of the acceptances to the more prestigious colleges. The tests were started to give the kids from average high schools a way to show their abilities in comparison to those from more highly regarded schools.
And I’d say the tests have served that purpose well, but other purposes they haven’t served so well.
It didn't seem to work out well in practice.