In many places, hotels are required by law to collect certain information about their guests, including their name, address, and ID number. This is typically done to help prevent crime and ensure public safety. If a hotel fails to comply with these regulations, they could face fines or other penalties.