How do tar and gzip contribute to a .tar.gz file?
tar
gzip
.tar.gz
tar bundles paths into an archive stream, then gzip compresses that stream.
Together they encrypt files and generate a decryption key.
Both tools perform exactly the same operation, so one is always redundant.
gzip builds the directory hierarchy, while tar only renames the result.