Sales, marketing, HR, admins, PMs, etc. are usually the first to go because they don't "keep the lights on" and it's hard to measure their impact.
While it's true that it's also hard to measure a single engineer's impact, it's scarier to fire someone who may be expensive to replace and who may take institutional knowledge of the inner workings of the product with them.