My understanding is that the caption does not get stored with the image metadata until the photo is exported (e.g. Share->SaveToFiles). Instead the caption is stored in a seperate place. I was told by Apple Developer Technical Support (DTS) that there is no API to retrieve this. However I have seen at least one App Store app that does. There’s another similar question posted at https://developer.apple.com/forums/thread/665185 .