I gotta ask, which city or even country? The United States has extensive and varied laws on public consumption and intoxication. Places like Las Vegas are the exception, not the norm.
They let you walk around with an open beer in denver? They don't let you smoke weed openly on the sidewalk. The places you listed are all examples of private consumption of alcohol , and those places have liquor licenses as well. Even on Bourbon Street, the heart of hedonism, there are rules like your container can't be glass.
and it is my experience that most places consider restaurants and such a place where a member of the public can be charged with "public intoxication," though to my knowledge that's not a thing that's punished here