its the law for hotels or wherever you're staying to check foreigners into the system for immigration, if they don't do it within 24hrs they will usually be fined 10,000 thb