I assume it's a lot easier to misrepresent a dried and pulverized product than a whole food product. A whole bunch of information about anatomical structure, texture, moisture content, color, etc. is lost when turning a fresh herb into a jar of powder.
The grinding apparatus often contaminates the product. Lead gears were used to increase reliability by the British and these spice fields still use machinery they left behind because it saves transport costs to compact on site.
Adulteration is one reason. Accidental contamination another.
But also some plants tend to accumulate certain compounds. Possibly to 100...1000x the levels from the soil it grows in. Eg. rice is known to accumulate arsenic occuring in soils naturally. And some soils just happen to be rich in, or polluted with <insert undesired substance here>.
https://news.ycombinator.com/item?id=36481693 -- Turmeric’s unexpected link to lead poisoning in Bangladesh (9 months ago)
https://news.ycombinator.com/item?id=38139011 -- How to stop adulterated turmeric from killing people (5 months ago)
https://news.ycombinator.com/item?id=29375003 -- Herbs and Spices Might Contain Arsenic, Cadmium, and Lead (2021)