Because making it possible for ethnically/racially/culturally diverse groups to live happily together is and has historically been a major challenge. So a country that has immigration policies that promote homogeneity will avoid many of those challenges. It's certainly not the only factor...but I can't imagine that it doesn't play a major role.