It can cause infant botulism.
Honey can contain spores of Clostridium botulinum, the bacterium that causes botulism. For older children and adults, this isn't a problem: a mature digestive system has enough healthy gut bacteria to stop the spores from growing.
A baby's gut is still developing. In infants, the spores can germinate in the intestines and produce botulinum toxin, causing infant botulism. Symptoms include constipation, weak crying, poor feeding, a weak suck and floppy muscles. It can be serious, though most babies recover with hospital treatment.
Health authorities including the American Academy of Pediatrics advise giving no honey at all to babies under 12 months. That includes honey in baked goods, honey-sweetened foods and honey on pacifiers. Cooking doesn't reliably destroy the spores.
After their first birthday, children can safely eat honey. Corn syrup was also once linked to infant botulism, though the risk today is considered very low.