You could view this as the immune system calibrating the microbiome: the more microbes there are, the more strongly the immune system pushes back against them. Alternatively, you could say that the microbes are calibrating the immune system, triggering responses that create a suitable niche for themselves while pushing out their competitors.