Yes Qatar has of course trillions of dollars but not one dollar goes from here to there without proper documentation. Say I am a labour and I dont get paid...my Rp is not renewed and I was not given ticket.. I go and complain to CID.. CID firsts put me jail cuz i dont have valid RP. He listens to the whole story..He tries to contact my sponsor...My sponsor is escaped and not answering my call. Then he tries to move it through embassy. Embassy asks labour to get money from home which he could not as only he is taking care of few left back home..

Labour->Police
->Embassy -> Labour

There is only one chance they can go is through charity organizations or under Emir special decision (which is certainly not possible every now and then).

Your RP is expired last year and u have to pay a penalty which is more than your salary...

In UAE all the illegal or overstayed labours have a chance on National Day that they will go out without fines if they have tickets..

You know how mental services work in UK right? As soon the program is finished the patient will be out of hospital..it doest matter he has home to live or not.. Just an example...