I don’t know about the food court, but alcohol is definitely true for legal reasons in some states. In Connecticut our local Costco had its alcohol sales in a separate entrance next to the main warehouse, on the opposite end from the tire department.
To add another one, the same is true nationwide for their optometrists, you can get your eyes checked there without a membership but won’t be able to buy glasses. If you want a place to get your prescription without a hassle from the optometrist (who is legally required to give you the prescription but isn’t necessarily happy about that), Costco is a reliable option.
https://customerservice.costco.com/app/answers/detail/a_id/8...
https://www.ftc.gov/business-guidance/resources/complying-ey...