The life of a bacteria community is a huge balancing act.
Depression may have an evolutionary benefit. It may improve one's chances of fighting off infection.
Most people know illnesses like intestinal upsets can be caused by bacteria. They don't link bacteria with an illness like multiple sclerosis.