Scientists have long known that certain types of bacteria boost the immune system. Now, a study is showing how bacteria perform this essential task.