The problem often is that the illegals dispose of their ID and lie about their name and nationality, thus it is often extremely difficult, or even impossible to deport them as UK cannot prove where they 'belong.'
Lock them up? Cheaper to let them stay and work, contribute to Social Security and pay tax !!