Nigger is a word from the past, they used to call black people. It was a hateful word and the black community stood against it. The word "Nigger" is now seen as a bad/hateful word for black people.
Boy 1: Look at that nigger!
Boy 2: Hey! You cant say that!