In more detail
Photos carry EXIF, Office files and PDFs record the author and editing software, and every file system keeps timestamps. Metadata helps investigators reconstruct who made a file and when, and it can leak private details unintentionally, so remove it before publishing sensitive documents.