This gets it backwards. In most places, we haven't arranged society as "everything is banned except for this list of allowed activities," more as "everything is allowed except for this list of banned activities."
We're not necessarily good at divining utility of actions when deciding what should be banned, either.
That any individual activity serves some greater good is a happy accident, there's no natural law that individuals will take actions that are net positive when you zoom out.