The entire concept behind a layoff is that a position is being eliminated, and that the person who is occupying that position is no longer needed. It isn't necessarily that the person is a poor performer and not of possible value to the company - simply that whatever function they're serving is no longer needed. If you're the elephant trainer at the circus, and the circus gets rid of its elephants... they don't need an elephant trainer, even if you're the best elephant trainer on the planet. If the circus gets elephants next year, then they need a trainer and might hire you back.
Now, if the layoff is a game of musical chairs, so to speak where there are 10 elephant trainers and the circus decides they only need 5... well, then being one of the 5 let go may be an indicator of relative performance and the circus might not want to rehire you in the future (ACT & the stock level 4s). Or maybe you were among the oldest of the 5? (Or youngest, to provide the illusion of non-discrimination.) Or the highest paid.
Lots of reasons folks are laid off, many of which are not performance based and shouldn't preclude re-hiring someone in the future if their skillset is needed.
More people need to read and accept this. OP makes this point perfectly. Copied from @mlb+1kJ0eZJ6.