I think it's partly a lack of sleep. Lack of sleep can increase negative emotions like anger, sadness, and frustration. The quiet aloneness also gives people time alone with their thoughts with fewer distractions, and thoughts aren't always that kind. One of the best things you an do when you start to feel like that is to sleep some of it off (assuming you don't have insomnia and can.)