It is misleading to think of anger as a negative emotion. A hot pan on the stove isn’t bad or negative just because it leads to you feeling pain when you accidentally rest your thumb on it. It is a good thing because it alerts your body to a dangerous situation.
We think of anger as a negative emotion because it often precedes a negative behavior. Because the behavior is bad or negative doesn't mean the feeling that came before it is.