As for black people using the so-called n-word among themselves, it’s simple: People have always adopted the epithets hurled at them as badges of honor, with irony and defiance.
See “queer”. See “Whig”, for that matter.