You need to read up on rendering. AE does not destory quality, the improper choice of an output format and compression does.
Type render in AE's search help field at the top right corner of the program and read up.
Rick is right. Start here for information about choosing export settings:
Start here to learn After Effects: http://adobe.ly/bjBT3P