What Happens When Files are Zipped?

When files are zipped they are being compressed to make the file smaller. They do this by getting rid of repeating patterns throughout the file.