I don't know what causes fish to do this. It seems to only happen in a small percentage of ponds and lakes. In over sixty years of swimming in a lot of lakes, ponds, rivers, and creeks, I only remember it happening a few times, and it was mostly from yellow perch, not sunfish.
But, then there are
fish pedicures.