The correct answer is - because workers are needed for development projects.
The countries in the Arabian peninsula has developed significantly in the last decades and are continuing that trend, so for the fast, modern, development they need a lot of workers which they do not have, so they offer jobs to foreigners.