Unfortunately the argument that in a free market, what maximizes profit is socially optimal, is not taught in schools, and alien to many people.
It doesn't help that in public debate, this argument is usually espoused by people on the right who mix it in with other unrelated arguments. So people end up thinking that if they support the free market, they also have to support cutting all welfare.