"In my view, a lot of the general associations we have with drinking in public are negative, like drunkenness in public, drinking and driving, like drunken hoodlums, all of these things β which make the news, but aren't necessarily the only way people consume alcohol in public."
Dr. Malleck quoted here gets close to the source of the problem, which is classism.
Most mayors, city councilors, etc. are doing well financially and they own their own houses (as well as cottages, investment properties, etc.), so the idea of going to a public park to drink outside with friends seems unusual to them. They view public parks as community spaces, but only within their personal perspectives as homeowners, and therefore what is allowed in parks is restricted to class-based moral sensibilities. It's easy for Councilor So-and-So to bring her laptop to her backyard garden patio for another Zoom meeting. The line worker who just wants to sit outside with her family after 12 hours inside sorting chicken meat for Councilor So-and-So's BBQ that weekend... she was an afterthought when it comes to these kinds of public space bylaws.
This disconnect between how municipal leaders and many apartment/condo-dwelling constituents live also explains the conflicts during the pandemic when people wanted to leave the isolation of their apartments for fresh air, but homeowner leaders (with their backyards, cottage retreats, 'working' holidays, etc.) told them to go back inside and threatened them with fines.
We do we have these bylaws? Ignorance rooted in class.