It shows investors that the company is reeling in their spending to become more lean, leading to the perception of better profits. You'll notice that after most layoffs the share price increases.
Remember, the only product that's important to publicly traded companies is good investor sentiment, everything else is secondary.
From the frying pan into the fire.