You can rent a room for days or a week, ask not to be disturbed, then CTB your first day or night, not being discovered sometimes until the smell of your corpse becomes an issue, often locking the door from inside so it has to be broken down. Also, you can CTB out of state, sometimes hundreds or even thousands of miles from where you live. This has happened at motels where I worked.
One reason these establishments have been taking information from drivers licenses for decades is to establish accountability and identity. Now you might use your identification to check me into a room on your behalf, but if my unidentified corpse is discovered in that room a few days later, the person in whose name that room was rented can still be tracked down easily enough to reduce the chances that corpse will remain unidentified. (No, of course this is not foolproof, but it does reduce the odds. And yes, minors routinely pay adults to rent rooms for illegal underage parties and drunken orgies. If those adults are not foreign nationals and remain in the country, they can be apprehended as they hold legal responsibility. And yes, I have rented rooms to guests who enjoy diplomatic immunity. In those cases, a nonrefundable advance payment was required.)