This is a classic Monopoly riddle. The man is playing Monopoly, and the hotel represents a property on the game board. By landing on the hotel, he has to pay rent, which results in him losing all his Monopoly money.
It’s a logic twist that sounds real but is actually based on a game situation.