They do this in Mexico as well. Always just seems like an honor system thing unless they are checking people at the door to the hotel and/or room each time they enter, which only seems realistic in very small hotels who have no e.g. restaurant open to the public.
Otherwise can’t one just rent the room as a solo guest, and just have someone come through later, as long as there isn’t an obvious group activity going on inside the room?