Because a company would have to prove that there was a real shortage of qualified pilots in order to sponsor foreign pilots. There is no shortage, just a shortage of those willing to work for pay and conditions on offer.
Now, if there was truly a shortage and improved pay and conditions still couldn't attract enough local talent, then by all means, open the doors.