Cryptosystems often compress data before encryption for added security; compression prior to encryption helps remove redundancies and patterns that might facilitate cryptanalysis.
Cryptosystems often compress data (the "plaintext") "before" encryption for added security. When properly implemented, compression greatly increasing the unicity distance by removing patterns that might facilitate cryptanalysis.