The advantage of using JPG compression is that it reduces the image file size. This is useful if you want to upload images to the internet or send them by email.
JPG compression is usually lossy, which means that some visual information is lost. This may affect image quality.