What is in desiccant packets in new bags, shoes, and how do they work?

Small white desiccant sachets are often found inside new shoes, pockets of blazers and other items. These packets always come with a bold warning, 'Do not eat'. So, what is inside them that makes these a health hazard?

Explainers