In NYC it's both the tax and residency issues. The hotel must charge the taxes each day up to the 30th, because as the previous poster said the guest could reserve a long stay then depart early. The accounting gets messy, and many transient corporate hotels just don't want to open themselves up to permanent resident problems.