Since companies usually don't want to telegraph the layoffs too far in advance, they try and keep the people in the know as small as possible. That means the people making the decisions on who stays and who goes are often multiple levels removed from a lot of the people affected.
I'm really sorry to hear that you got let go and I hope you are able to find a new role soon.