To exit a country, you need to pass their immigration which may require same physical passport on which person has entered. Also, India/Pakistan wouldn't want to antagonize the Saudis as billions in forex flow via these workers. So, it is the cost of being poor.