I’m not sure but it could be to smooth the switch, prevent spikes?

It’s connected to the thermal pad and the 510 resistor (through the thermal pad) so it would appear to be for the low output side. I’m no electronics guru either so I can only surmise.