Actually chocolate does have caffeine, but less than coffee, although the quantity varies wildly according to the type, commercial ready hot chocolate (tiny amounts), or prepared from cacao powder (higher amounts).
Chocolate contains also other alkaloids such as teobromine and is told to be serotoninergic (reinforces the flow of serotonin), so some direct effects on the brain are almost indisputable.
Well it shouldn’t be any surprise to me that I would suddenly want to compensate in a different direction by eliminating something I’m somewhat used to. I remember going cold turkey on all beef and pork and suddenly being a connoisseur of every fish product available. And even when eliminating both fish and meat products becoming aware of perhaps some unhealthy health foods that replaced them in taste.