Everyone does stuff with money that doesn't make sense, or isn't the smartest thing. It's the same reason why going grocery shopping when hungry is really great for the store - but dangerous for your wallet.
How emotions affect money habits
http://www.marketwatch.com/story/how-emotions-affect-money-habits-2015-03-13