What is PPM?
Uncompressed RGB behind a four-line text header - about as simple as an image format can be while still being one. Nobody ships PPM to users; it exists as the thing scripts and teaching code write when they'd rather not link an image library.
What is TGA?
Targa dates to 1984 and refuses to die, because game engines and 3D packages standardised on it for textures and never had a reason to move. It keeps an alpha channel, optionally compresses runs of identical pixels, and is simple enough that every tool reads it.