Hate, anger, envy, can also drive a person towards a goal, happniess simply being a reward.
Happiness is the ultimate goal of everything. How useful would all of those "negative" emotions be if there was no desire to do anything about them? It would be like having a car, yet having no use for it.