comparative suffix, from Old English -ra (masc.), -re (fem., neuter), from Proto-Germanic *-izon (cognates: Gothic -iza, Old Saxon -iro, Old Norse -ri, Old High German -iro, German -er), from PIE *-yos-, comparative adjective suffix. Originally also with umlaut change in stem, but this was mostly lost in Old English by historical times and has now vanished (except in better and elder).
For most comparatives of one or two syllables, use of -er seems to be fading as the oral element in our society relies on more before adjectives to express the comparative; thus prettier is more pretty, cooler is more cool [Barnhart].