They're not illegal though - everyone has a right to asylum, even if you arrive seemingly illegally via a dinghy. And contrary to popular belief its not a stipulation that you must settle in the first safe country you arrive at.
If they aren't claiming asylum and just searching for work then they get bounced back pretty sharpish. Hell this government was almost bouncing back people whose parents arrived seemingly illegally in the 60s