Smart companies realize that their profits do not exist in a vacuum. In Germany it's a long standing view that capitalism must be balanced and that companies have a social function in society and must act accordingly. This is one of the secret powers of what we call "Mittelstand" which employs the majority of people in Germany and produces a huge share of the social product. Those companies are often family owned and pride themselves in taking good care of their workforce - a trait that often pays off when times are turning worse since the employees reward good treatment with loyalty. It's not uncommon for a complete workforce to accept pay cuts across the board instead of firing people which in turn allows the company to keep well trained and educated workers on the payroll until things get better. Both sides profit here.
So yes, companies are for making money, but smart companies think further than next years profit statement.