Why are some chocolates wrapped in foil?

Why are some chocolates wrapped in foil?

Is there a relationship between spicy foods and late pregnancy?