iPhone HEIC and orientation
iPhone photos often store rotation and tiling information next to the image. The HEIC decoder applies that orientation before the canvas is created, so the JPG matches what you saw in Photos.
Live Photo motion, depth maps and auxiliary images are not part of the still JPG. Only the primary image is converted.