Hi,
On the 628 RA4 is open drain so it can't actively drive the output high, only pull it low. A pullup resistor is needed to be able to get a logic '1' on that pin. RA5 doesn't have any output drivers at all so it's input only.

/Henrik.