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 WEBP?
WebP is Google's image format for the web, and the rare one that does both jobs: lossy compression that beats JPEG at the same quality, lossless compression that beats PNG, and an alpha channel either way. Every current browser reads it; older software often still does not.