Two places metadata lives
The older mechanism is the document information dictionary, referenced from the trailer. It holds a small, fixed set of named entries: /Title, /Author, /Subject, /Keywords, /Creator, /Producer, /CreationDate and /ModDate. This is what most viewers show in a document properties panel, and it is the layer that tools have read and written since the early days of the format.
The newer mechanism is XMP: Extensible Metadata Platform packets, embedded in the PDF as streams containing RDF/XML. Because it is XML, XMP is open-ended — it can carry the same basic fields plus whole vocabularies for rights, provenance, colour management, document identifiers, and application-specific data that a particular tool decided to record. PDF/A relies on XMP to declare its conformance claim, and many production workflows depend on it.
Both can be present simultaneously, and nothing forces them to agree. Editing the information dictionary in one tool while an XMP packet elsewhere retains the old author is a common and easily missed inconsistency. It is also why removing metadata properly means addressing both layers: clearing the visible properties panel while leaving an XMP packet untouched achieves very little.