RA4 is an open drain output.
You'll need a pull-up resistor on that pin.