Some of this smells purely nihilistic. The market rewarded layoffs with higher stock prices, incentivizing more layoffs.
I dont think zuck cares especially much about the stock price. He's certainly not beholden to any shareholders. He's doing this because he genuinely thinks it will help the company to trim the fat.
It sure didn't reward Atlassian. If anything it accelerated the long, downward slide.