The people making the cutting decisions are also a removed from individual IC level visibility. These cuts are often done based on financial metrics per product line.
You could be an amazing engineer and have a well engineered product, but still get laid off because the product didn't get market traction.
I've been on both sides of the equation. It sucks but such is life sadly.