Layoffs are bureaucratic in Spain, needs to be approved by unions and sometimes government too (EREs) (1)
Considering how lowly paid SWEs are in this country, I'd imagine the company would be better off keeping them on payroll.
1: https://www.wolterskluwer.com/es-es/expert-insights/que-es-u...