The point of RAW is that postprocessing parameters can be applied (and changed) later - JPEG bakes those in and you cannot un-apply them. Compression artifacts are not even on the top of that list - think white balance, sharpening, demosaicing, noise reduction, darken/lighten with less loss of details, etc, etc.