Because OSCCON=%01110000 sets the internal oscillator to 8Mhz...

Read the 16F767 datasheet section 4.6.3 for other frequencies...

PICs makes me love and hate them at the same time....