I think it has less to do with "being cool with Swedes", and more to do with the fact that illegal immigrants are -- statistically speaking -- overwhelming Hispanic, and anyone identifying illegals will have better results among Hispanics.
I don't think anyone is more cool with a Swede conducting a terrorist attack than an Arab. Rather, any tenancy to profile Arabs as terrorists comes from the fact that most terrorists are Arabic.
---
This is not to justify the practice of racial profiling. I merely assert that the motivations for racial profiling stems more from actual statistics and cost-benefit analysis than intrinsic irrational racism as I think you suggest.