That’s only true if you believe the free market always behaves to optimize for the good of society.
In my opinion, it works horribly bad for long-term effects, so we need government regulation to prevent/soften the effects of the tragedy of the commons.