Finding Redundancy
At their core, lossless compression algorithms like DEFLATE (used in ZIP) work by finding repeating patterns of data. If the word 'compression' appears 50 times, the algorithm replaces it with a short, unique pointer.
Dictionary and Huffman Coding
This combination of building a dictionary of patterns and assigning shorter binary codes to common characters is how massive text files can be shrunk by up to 90%.