If it was impossible to pay a wage for a nasty job that wasn't sufficient to attract locals, there wouldn't be any particular incentive to employ immigrants, even if they would be willing to work for less. Unless they were better at the job, and that's a matter for our education and training system to address.