This meta-analysis isn’t very convincing. Most of the studies included were primarily about other measures like IBS, COVID-related GI symptoms, or Fibromyalgia. Improving GI problems would be expected to improve mood.
The positive result is heavily driven by an outlier study on Fibromyalgia that has results that look a little too suspicious relative to the other studies.