The basic question here is the finitude of human existence. We have negative emotions because human beings are finite, ie are not immortal gods, and so are vulnerable to various types of harm, and negative emotions motivate us to take action to avoid or mitigate harm. Only a god could be happy all the time.