I don't smoke, but why do I want to smoke every time I am in a bad mood?
Maybe you want to vent. This is human nature, because when you are in a bad mood, you have to do something to vent your bad emotions, but you can't find a channel for others to vent, so you use smoking to vent your emotions. This is also a very common phenomenon.