When someone asks you to send a photo as a document, first decide whether they need the actual original or just a readable image file. Those are different requests. If they need your camera original, a master for editing, or a file whose bytes must remain unchanged, attach that original directly. Running it through a compressor creates a new file, even when the dimensions stay the same.
This page starts with source dimensions preserved, JPEG quality at 96%, sharpening off, and no target size. It is useful when you deliberately want a re-encoded sharing copy before attaching it as a Document. It is not an archival copying tool. A JPEG export changes image data and may not retain source metadata or specialist features.
WhatsApp's attachment help describes Document as a separate attachment option from photos. Choose the correct option in WhatsApp after saving the prepared file. The compressor does not select an attachment type or send the image for you. If the receiving organisation has a specific file instruction, follow that instruction rather than assuming a photo message and a Document attachment are interchangeable.