Not defending hotel security in ANY way, but to put this in context for people who haven't traveled to Latin America:
Prostitution is legal in many of these countries. Most of the hotels, especially the high end ones, charge a "hooker tax" for someone else occupying your room with you. It forces them to register at the desk.
Hope this gets resolved.