JPG's use lossy type of compression which is good for real pictures with lots of color.
GIF's use lossless type of compression which is good for small pictures, cartoons, icons, anime type of pictures, and any pictures which doesn't have alot of different colors.