Maybe it's to do with parasitic capacitance at the PIC output so perhaps some kind of buffer stage would help ?