Purpose of capacitor in op amp feedback loop of power supply comparator
That's a filtering element in the feedback path: High frequencies pass easily through the capacitor, low frequencies don't.

Thus, the effect of this is that high frequencies get attenuated by this. That can have a lot of purposes – usually, noise robustness.