In this short video, why compensation resistor is connected in the op-amp circuit is explained. The significance of the compensation resistor is to reduce the output offset voltage.
By properly selecting the compensation resistor value, it is possible to minimise the output offset voltage.
For more information, you can check this video on Input Bias current of the op-amp:
• Op-Amp: Input Bias Current and Input ...