Br2 is a stronger oxidizing agent than I2. Due to this, it oxidizes S2O2−3 from +2 to +6 oxidation state, while I2 oxidizes S2O2−3 from +2 to +2.5 which is comparatively lower oxidation state. Due to this, same reductant behaves differently in different reactions.