I always assumed hotel keycards are writable[1], so they just change the code on the card and associate the new one with the room whenever a new guest checks in. Knowing what the code was when you were staying there wouldn't be any help at all in the future.
[1] This sort of thing: http://proto-pic.co.uk/mifare-one-rfid-card-13-56mhz/?gclid=...