There is a few reasons for bad quality:
Recording level is too high. Open mixer and decrease it to avoid clipping.
Low-quality compression. Open codec settings and increase bitrate/smpling rate.
Background noise. Muthe all unused sound card inputs (microphone/line-in/aux) to remove it