When you undress or change clothes in a hotel room, you close the window and the curtain. If you don't, someone will see you. And, if you're a famous person, you must rest assured that someone will photograph you and tomorrow those pictures will be surfing on the Internet.
Though, we know Rihanna doesn't care about this. I think she enjoys showing flesh more than Hannibal Lecter eat it.