i never worked from home and i was laid off.....in fact i enjoy better working from office, because of the working ambience and because people /infra is accessible.
Actually all logics are speculations...there is not certain logic of why people were laid off.
My manager at senior director level also got this as a surprise about my lay-off and the manager rang up to say this and was really sorry about my exit.(having worked for more than 10 years, i know my manager was sincere)....Also in was certainly not getting salary on higher sides (as that could be the reason )..in fact new joinees are getting at market rate and i could be making probably half......Plus there are people in my team who are further 10 years plus senior to me, so the reason of overstaying also does not hold good.
We really dont know what happened....may be it was destiny....Its better to move on.