Then why is it called being here "illegally"?

illegal = against the law

against the law = crime