Why worry about the (working) visa when you haven't applied for a job (In Qatar) yet?

I find this like: farmer counting the eggs but the layer hen is still in the market waiting to be bought/purchased and the chicken coop hasn't been built yet...