In short: color, quality, and size. PGM files are extremely limited in how much information they can store for each pixel in the image. This also makes them smaller.