Exactly what tintor is saying. We have access to special lanes including fast track lines, pilot/crew lanes, or the diplomat lines. In other cases, our agents are able to simply walk travels to the front of the immigrations/customs lines.
I've been through a priority queue in business class, but this sounds like a much cheaper option if you just want to fly economy. I will definitely try this out on my next trip.
Actually a bigger business opportunity might be to sell the "pass the queues" access on the fly (without pre-booking). In most cases I would be a bit hesitant to spend money on these in advance, but if things don't go as planned I might be interested in paying to speed things up.