Since iOS 11 on the iPhone the default file format for photos has been HEIC. This is a new image file format that gives better compression and image quality than JPEG. On the Mac, the Photos app and macOS understands HEIC since High Sierra. In the Photos app you can use either HEIC or JPEG, and can export either as well. Other apps and devices also support HEIC.