This isn't a moral justification, but isn't laying off workers when other companies have layoffs a simple supply and demand response? That is, the demand curve is the same for these workers but the supply curve shifts to the right and prices for the same job drops. They're betting that the people hired in a recession will perform better per dollar than the people let go.