It’s pretty much the standard now as others have noted, to prevent cheating, not just for the younger students but for students in the current class. e.g. you can make a reason to get out of the test, take the makeup and have the actual test in hand from a classmate. It does I think hurt students who legitimately want to review the tests outside of school when they have more time, maybe with their parents. High school cheating is rampant though, even in the “good” schools.
In the good ole days, I got all my tests back, except the multiple choice, where I only got the answer key. In college I think you keep the tests.