New York City specifically has laws that require establishments to admit journalists and critics.
Civil liberties come into play. I can discriminate based on race or sex in who I allow into my house, but not my storefront.
Some place have straight up public accolades requirements - if it’s open to the public, it has to be open to the public.