Similar to public bathrooms - if a business is open 24 hours and you can stick around in there in the heated / cooled interior that's good for the homeless person, but maybe bad for loitering or the business.
I can't imagine a business closing over it, but having a closing time is a good way to get people to leave maybe?