This is something I've often wondered. I've never understand why people in other countries count for "less" than people in one's own country.
Similar thing.
The same reason we take care of our own, but we don't go out of our way to help a stranger in need.
It's not that we consider them "less human" or that they actually count for "less" in abstract, but people do have (a) limited resources (so can't help everyone) (b) limited horizon of acquaintences and direct experiences (so can't know everyone) (c) preferences and alliances (so can't care for everyone).