The market is profit motivated. Sometimes profit comes before what is good for people.
Lots of evil is done by an overbearing government, claimed for the good of the people.