There's an evolutionary imperative why we give a crap about our family and friends.
And there's an evolutionary imperative why we don't give a crap about anybody else.
If we loved all people indiscriminately, we couldn't function