JPG trades detail for size, permanently
JPG compression discards image information the eye is least likely to notice. That is why a photo can be a tenth the size of its lossless equivalent, and also why the loss is not recoverable. Once saved, the discarded detail is gone from the file.