For example, management can stifle productivity in ways that individual workers have little influence on.
Also, employees may be ‘useless’ for a while, but then improve again, for example if they are going through a divorce, the death of a relative, etc. Firing people because they perform worse for a few months is frowned upon in some circles.
Good management is not, ironically, rocket science.
Very few things in this world are actually simple enough that this kind of dismissive attitude works. I've seen people who didn't care about giving helpful feedback and second chances, but I've also seen people who agree in spirit, but don't know how to do it well.
In addition, courts will be siding with the employee in lots of cases, and when the company has a Betriebsrat (workers council) and the Betriebsrat sides with the employee it is next to impossible to get someone fired without serious consequences in court.
People living in fear of their jobs created the most toxic environments.
I worked for a German company for over a decade. I don't know if it was due to their culture or their laws, but I never saw anyone get fired for poor performance (except for failing the initial 6-month probation after joining). And it's not like we didn't have low performers — once I got into management it became quite clear that there were a handful of people who were borderline useless, but it was just accepted that they were employees, that the company should look after them just the same, and find work for them to do.