The advantage of using JPG compression is that it allows you to reduce the image file size. This comes in handy if you want to upload images to the internet or send them via e-mail.
JPG compression is usually lossy, which means that some of the visual information is getting lost. This may affect the image quality.