Why do you get candy on Halloween?

Because you either get a trick or a treat, though people don't seem to do tricks any more.

because getting candies is the part of Halloween history.