What is SVG?
Not pixels but instructions - shapes, paths and text that a browser draws at whatever size you ask for. That makes it perfect for logos, icons and diagrams, and useless for photographs. Converting an SVG to any other format here is the moment it stops being able to scale.
What is PGM?
Greyscale, uncompressed, with a header you can read in a text editor. PGM is part of the netpbm family, and it exists because sometimes you want pixel values you can do arithmetic on without a decoder in the way. Image processing and computer vision code loves it.