Double duty: Gut's immune system helps regulate food processing, too
The gut immune system not only defends against pathogens but also regulates which nutrients are taken in.
Gamma delta T cells can suppress expression of IL-22 & allow the cells on the intestinal wall to activate digestive enzymes & nutrient transporters.

https://medicalxpress.com/news/2021-03-duty-gut-immune-food.html