The value of their work then exceeds its cost, so they have a job.
Americans would take those jobs if they weren't forbidden to work for that wage until their experience and skills increase.
What would happen if the illegals were made legal? Those jobs would disappear.