The below picture comes from the document, iOS Security which I refer to answer the question even though the document doesn't have a direct answer.
The iOS uses the hierarchy keys to encrypt files. Class Key, that is used to encrypt and decrypt File Metadata, is encrypted by Hardware Key and Passcode Key. Hardware Key and File System Key are unique and constant. File Contents is encrypted and decrypted by a unique File Key that is in File Metadata that is encrypted and decrypted by File System Key and Class Key. Only Passcode Key can be changed by a user via the below steps.
- iOS uses Hardware Key and Passcode Key to decrypt the encrypted Class Key.
- The Passcode is update to new one.
- iOS uses Hardware Key and new one to encrypt the Class Key.
Because Class Key and File System Key are constant, changing of Passcode doesn't impact the encrypted file contents. This is the answer.
-Count