AVI is just a container format. It can contain video and audio. That video and audio in compressed using codecs. Just because Quicktime can read AVI does not mean it has the right codec installed to decode the video and audio.
You're probably trying to open an AVI that has video encoded in Divx with Quicktime without having the Divx codec for Quicktime.