If you are using iCloud Photos and "Optimize iPhone Storage", that might raise a question.
Suppose that your phone is currently storing a photo in a reduced-quality, "space saving" format, and you go to export the photo to Files. Would that cause the phone to download the full-size copy from iCloud before doing the export? Or would it export the "space saving" version?
iCloud Photos always stores full-size copies of photos in iCloud itself, and there is an iCloud Web interface. Thus, if you were to log into iCloud from a Web browser, and download copies of photos from there, you would get full-size copies. (I think you would have to choose between downloading the original copy or downloading the edited one – Photos likes to keep original and edited copies together, which adds a little wrinkle to exporting.