Your questions seem to conflate morality with legality. I don't find it morally wrong to take a piss "in public" (meaning in an alley behind a bar or what have you), yet I do understand why it's illegal in an urban setting and support such a law being in place.

So, yeah, an action morally excusable for one, may be an action to the detriment of society.