Herbs have all sorts of compounds, many of which are known to interact with the body's immune system.
Loads of studies about tumeric and inflammation, arthritis. Also capsaicin, piperine, etc. The list is extensive.
Remember: Herbs and spices are where medicinal remedies originated.