This is because, in a work of evolutionary WTF, their esophagus passes through the main nerve cluster that functions as their brain. Take too big a "bite"? well,,,
As it turns out, the circumesophageal nerve ring is found in several invertebrate phyla. I think this counts as "trick" in trick or treat, tbh.
Diagram from Invertebrate Zoology: A Functional Evolutionary Approach by E. Ruppert, R. Fox, and R. Barnes.
