It’s slightly more nuanced than layoffs = capex. You’re right, they don’t. That said, they do create free cash flow, which the market uses as one important input into the value of a given stock. Moving FCF positively when capex spending is moving it the other way is the real financial accounting move that is happening here.