This is part of the Visa Exemption Scheme. To stay longer than 60 days or for purposes other than tourism or short-term business, a visa is required, which can be obtained through the Royal Thai Embassy in Abu Dhabi or the Thai Consulate in Dubai, or by applying for an e-visa online.
Here’s a more detailed breakdown: