People who don't have OGG compatible media players. Ogg file 22mb same file Avi 500 mb am I doing something wrong?
You might benefit from some elaboration on the matter. OGG and AVI (amongst others) are both just media containers. OGG is a more modern and better featured container than AVI, but at the base level both are analogous to an empty, cardboard box. They're both light (small size on disk) by themselves and do little that is interesting until they're filled with something you care about.
Video and audio are encoded using various codecs. Video is popularly encoded into the H.264 format these days in a lot of places. Codecs of yesteryear include MPEG-2, XviD/DivX/Other generic "MPEG-4" codecs, and so on. Audio is popularly encoded into the AAC, AC3, MP3, and Vorbis codecs. There are of course many others, including lossless codecs like FLAC.
You can put the same H.264 stream with AC3 audio into either an AVI or OGG (typically using a .ogm extension when there is a video component) container and get two files of just about the same file size. The only difference comes from how much overhead each container imparts, but even for feature-length videos it's only a few megabytes difference at most.
I say all of this to set you up with the naturally following consideration: It isn't the fault of the file format that is causing the disparity in file size. The files must be encoded differently, either with different codecs and/or bitrates. Unless the content is simple enough to be well represented by 22MB of data, chances are the version you have contained in an OGM container is inferior. If they look about the same, chances are good that the version contained in the AVI file is simply over-provisioned in terms of bitrate, meaning that the person who encoded it allowed for more data to be allocated per unit of time than was necessary to reproduce an image of a quality that is acceptable for you the viewer.
It should naturally follow then that if the OGG-contained file you have looks good, the AVI could have provided the same viewing experience in a similar file size if the person doing the encoding had known what they were doing. You should not hate the file format.