Despite that 48MP main sensor, the default resolution is set to 24MP, presumably to rein in large file sizes. To kick that up to 48MP, go to Settings > Camera > Formats and turn on Resolution Control (on the iPhone 15 and iPhone 15 Plus) or ProRAW & Resolution Control (on the iPhone 15 Pro and iPhone 15 Pro Max).