Hotels do this primarily for two very good reasons. The first is not to have locals rent rooms, host wild parties and disrupt other guests. The second is to prevent well-meaning do-gooders from dumping homeless people at their doorstep. If you wouldn't welcome them into your own home why bring them to someone else's and leave them there?