What is JPG?
JPEG is the format photographs live in. Its compression is lossy - it discards detail the eye is bad at noticing, and discards a little more every time the file is re-saved - which buys enormous size savings on photographic images and makes a mess of screenshots, logos and text. It has no transparency.
What is BMP?
BMP is the Windows bitmap: pixel values written out with essentially no compression, which makes the files enormous and the format trivial to read. It survives in Windows tooling, embedded systems and anywhere a program wants image data without a decoder in front of it. Rows are stored bottom-up.