It serves as a differential amplifier. The two signal cables of the xlr carry an out of phase signal and random noise from interference.
The opamp substracts the noise from the signal because it is largely the same for each signal cable. The noise in the left cable is in phase with the noise...