What is BMP?
The Windows bitmap, which stores pixels raw with no compression worth mentioning. Files are enormous. It survives because it's trivial to read - if you're writing an image loader from scratch or feeding an embedded display, BMP is the format that needs no library.
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.