This is a bizarre Americain custom which is being exported all over the world for the last decade.
One of the main reasons we pray before meals, and ask the Lord's blessings upon the food, is because demons frequently hide in the food.
If that is the case, I can especially imagine them being attracted to Halloween candy, and even more so to the candy Catholics will receive on such an occasion.