I hear you. I *do* know where I learned it though! Easy. My mom was an emotional shopper, and I am too. There are so many attractions for me -- visual stimulus, a feeling that you're being productive (even if it is an illusion), the chance that you will find something that makes you feel pretty, etc.
It's more dangerous for me now that I'm self-employed. I can shop anytime! But I really get into the danger zone when I'm feeling discouraged, depressed, or unmotivated. Shopping is an awesome procrastination tool.
Oh, and my husband is such an enabler. That doesn't help. But I try to reign it in when I feel I'm getting a bit crazy. I tend to go feast or famine. Not shop for a few months and then binge a bit.