I think a big factor in these layoffs is to signal the market that the companies are "cutting fat". The market gets the signal, stock price goes up and the board of directors eases the pressure on the CEO. After this the company can resume business as usual, which will require quietly hiring to fill the needed positions.