Layoffs often indicate lack of growth - might be harder to grow professionally, or get promoted.
Also saving money on hiring often means saving money in general and elsewhere too, worsening quality of life.
In particular projects can get canceled, priorities shifted, grind increased, privileges revoked, remote work banned, etc.
People who have the option to leave might do just that.