Can't say what would cause that. Programmed a 12F635 here, and it works just as
expected per the code example above.

LEDs on GPIO.0, 1 and 2, and buttons on GPIO.3, 4 and 5 with pull-down resistors, and
button presses taking inputs high.