How do probiotics improve digestion and boost immunity in the body?

How do probiotics improve digestion and boost immunity in the body?