PortA comes up in ANALOG mode as default. See DATASHEET, Section 10-2, ADCON1 register. Select DIGITAL mode. See associated table.