Employment law in Spain is a case study in good intentions gone bad. What began as measures to protect employees have turned harmful as everyone figured out how to game the system. The finiquito is a great example of this. If you are a full employee and your company decides that they no longer need you, they generally have to pay you 1.5 months of salary per year worked to avoid legal trouble. If you leave on your own, you get nothing.
Given how costly it is to lay people off, most young people work on one year contracts (which is renewed one year, then bye-bye). The end result is that the population on average has less job security than in many countries that have lower protections.
Since I’ve been at the same company about 17 years, I would get an insane amount of money if my company laid me off. Enough to get me wondering about how hard I should really be working.
Needless to say, the phrase "you can't fire me, I quit!" is not often heard in Spain.