TextEdit has its roots in OPENSTEP, where it was used as kind of a demo application of the text views IIRC. It even came with source code, as did Chess by the way.
So I guess a comparison between TextEdit and Pages doesn't make too much sense probably, they're really different things.