What if they can do what you pay them to do, but you can no longer afford them?
That's exactly what a layoff is...the result of the fact that employing this group of people is economically unsensible.
In Germany cases where companies truly cannot afford the person the following rules apply:
1. there is absolutely no way for the person to conduct different work inside the company 2. the company needs to choose those that can more easily afford to be laid off. (employment duration, young, single etc) 3. the place of work has to permanently be gone
Beforehand, the company has to talk to the workers council though so they can possibly find solutions to the problem without having to fire people.
Companies would be a lot more willing to take a chance on hiring someone if they know that they can let them go easily if things don't work out.