There really is some reasoning behind putting herbs in nesting boxes, other than being a crazy chicken person.

If you are a country person you may know that wild birds use herbs as they build their nests, this could be to possibly shield their babies from bacteria, these herbs act as safe, natural insect repellents and may help drive away flies, mites, or other pests in your coop, just like in wild bird nests.