Countries have a right of controlling immigration in their territory. Letting illegal immigrants stay and work essentially negates that right.