This is the sausage-making of the free market. Companies that can't hack it go away. However, unlike Solyndra, they don't take $500mil from taxpayers in the process.
It's easy to hate companies that lay off workers in the name of efficiency. But what is far worse for the economy, and thus workers, is things like zombie banks and other failed companies being propped up indefinitely, as they suck capital that could be invested in companies that are self-sufficient. It doesn't have the same emotional impact, certainly, which is why some people have a more visceral reaction to one than the other. Then they go through all sorts of mental contortions to frame it as a rational thing instead of an emotional thing, because they fancy themselves to be the smart ones.