In economic terms “illegal immigration” is surplus of a particular resource i.e low skill human resource which acts as a drain on the economy at least for the short run.
“Job outsourcing” is reallocation of resources to optimize for greater competitiveness, profitability and overall return on the investment.