Once you enter qatar, you are "technically" a slave of the company and you cannot leave the country without their permission..

So, you need an exit permit to get out of the country.