Probiotic gut microbiota have multi beneficial effects for host; improvement digestion and intestinal health, inhibition of pathogens in intestinal tract, enhancement and induction of immune system response, anti-inflammatory activity, production of vitamins and cofactors and so on. ( Article Psychological Impact of Probiotics and Fermented Foods on Me...
Probiotics are not needed unless the patient has received sophisticated perioperative antibacterials (e.g., quinolones, >2nd generation cephalosporins, enzyme-added -cillins, -penems)
I would argue that the preoperative period is an ideal time to administer probiotics while the GI is relatively empty, significantly increasing the chance of colonization (from infinitesimal to very small). The bariatric procedure redirects food away from GIP producing K cells toward GLP-1 producing L cells. This results in a metabolic shift. Gut bacteria are sensitive to and participate in that shift. The postoperative re-feeding period is an opportunity for newer strains to grow that better match the new equilibria.
Granted that, I don't consider probiotics "necessary".
Bariatric surgery is associated with major modifications in microbiota composition, quantity and function. Potential mediators to the gut microbiota are probiotics which are considered to be a safe therapy since its microorganisms composition is found naturally in human microflora.