Lots of misinformation here already.
If you are management, say an L2, and you report to a L2 AD, who reports to a L3 director...that AD and that L3 are the ones that are signing off on who from their team is getting the walking papers.
The L4 and L5 don't know anyone from anyone below the L3. They are not arbitrarily selecting those L2's themselves.
When your AD delivers the news, they will read the provided script. You will undoubtedly ask , "why me"? Their response will indicate that they had nothing to do with the selection. That is 100% pure and utter BS.
Now, if your AD and/or L3 is on the chopping block, and there are also layoffs at your level ...I guess all bets are off at that point. But I have not seen that scenario play out yet.