I've wondered the same thing, myself. I can only make vague speculations. Salivation is essentially a digestive function, and as Tapeworms typically reside in the digestive tract, the distress and imbalance they cause there may somehow result in drooling.