This applies in the US too in most cities I’ve done business in. Some hotels don’t enforce the ordinances, but the hotel is supposed verify who is staying at the hotel, along with license plate numbers of vehicles the guest has. Also, I wouldn’t want to stay in a hotel that doesn’t check rooms periodically (at least once per week), as that is a recipe for meth cooking and hoarders bringing pests into the building and numerous other problems.