It's a matter of perspective. Of course they aren't giving a wage to the homeless. But like many places they are often short staffed and not great paying.
In 2018, Starbucks came under fire for calling the police on 2 black men who were inside but not making a purchase. Starbucks policy at time was that only paying customers could use the facilities. Twitter does what Twitter does, and eventually Starbucks reversed course on their policy (after throwing their own employees under the bus for following policy).
So, stands to reason that a homeless person can come and go as he or she pleases, sleep, use the restroom, eat uneaten food, as they please. Can an employee? Perhaps they can do some of those things, but definitely not as they please due to aforementioned understaffing.