Dubai needs people "workforce" to fill their Apps., Villas s.o and they need money from those people to run their Gyms, Malls, Restaurants and whatever.
-Now fire people
-After 3?Month they have to leave the country if no new Job is found
-People leave, take families and everything with them, maybe leave some unpaid mortages.
-Potential new "workforce" thinks twice before moving to the UAE because Job safety is important for them.
Result less people live there, less people spent their money there
Sound like a plan