Extremely random question

I’m a black foreign student here in Dar es Salam and part of banter of our people we use the N-word as like bro but I’ve noticed we’d get a dirty looks even if it wasn’t directed to them. Can someone educate me on why that’s happening soo I can ultimately stop it and educate my friends?? Cheers🙏🏾🙏🏾