Why is "Jew" not a slur?

It’s probably meant to be offensive when someone says “Hey, Jew!”.

On the other hand, “Heb” is not derogatory at all.