Thai culture can be a little strange to outsiders at times, and many Thai customs and traditions take some getting used to. Like dialect in Thailand, customs differ from region to region, and on your travels up and down the country, you’re likely to come across many a different custom and tradition.

Historically, overnight visitors to a Thai home were requested to ask permission from the phra phum (spirit ghost of the land) to stay in the house. The visitor would then be asked to thank the ghost when they left. This custom still exists in some rural areas of the country, but you probably won’t be asked to do this as a foreigner. However, some Thais will even perform this ritual before going to sleep in a hotel room.

Source: https://www.thethailandlife.com/10-facts-thai-culture-and-customs