Anxiety, sadness and anger are not unfortunate by products of evolution. These are features of how we operate that help us do well in this world. A small ping of anxiety at work doesn't feel good when it's triggered but is so amazingly useful. The same is truefof all negative emotions, the are viewed as functional.