I've seen these .rar;.mkv;and .ogm files and wonder "what makes those different from .avi or .mp3?"

Is it just a different way of endcoding something, or are there specials mixed in with these uniques filetypes?