Your argument is flawed. Reactionary firing tends to be inefficient, but makes shareholders happy on the short term.
Should a company prioritise shareholder happiness over efficiency is the real question here. Their losses don’t originate from these employees nor initiatives; it originates from market conditions.