CEOs are responsible to the board of directors and shareholders. The BoD and shareholders are who choose and remove CEOs and you can bet both are considerably displeased when the company isn't as profitable as they expect.
That's the best part of modern tech markets in a not-recession recession. They are still profitable but will layoff because it's fashionbble or to make more money.