The JPEG is a camera format that is used if you don’t want anything to happen to it. JPEG is how you see the picture when you first take it, it takes it right away, no texture. Which make it’s more work for you to edit it and make more presentable. The JPEG is already processed by the camera and you don’t have to do anything about it.
Raw has more options for correction exposure issues. The main benefits of capturing a photo as a raw file is that the color data in the files option is already there. With raw file you have more control over the white balance when you edit the image. Raw offers more creative processing flexibility. Which means that the JPEG is more on the camera and Raw is not which means you have to do it yourself.