If you have the datasheet did you notice the note?

Note 1: The CCP1 pin is determined by CCPMX in
Configuration Word 1 register. You have a choice of 1 of 2 pins.

Note: The TRISB bit (0 or 3) is dependant upon
the setting of configuration bit 12 (CCPMX).