Some automatic server uploaders or build-sharing platforms require a .zip package containing both the schematic file and potentially a data.json or metadata file.
If you simply want to compress the schematic to send it via email or upload it to a forum, you can use your computer's built-in tools. schematic to zip converter work