Compression software such as winrar makes the total amount of data smaller by arranging the original data in different ways. As long as there is no interruption or error during compression and decompression, the decompressed data is exactly the same as the original data.
They are not compressed by reducing or merging data (on the contrary, jpg format is a lossy image format), so they will not lose any file details.