JPEG is a lossy format where the data is compressed and making sequential copies i.e. copy of a copy of a copy etc. will result in deterioration of quality.
RAW is lossless and all copies will be identical to the original.
If you want to maintain high quality, keep to a lossless format. You may wish to change that from RAW though (bitmap or TIFF for instance).