Sometimes when the iPhone takes a HDR pic, it doesn't look better than a regular picture. So it leaves both, and you can delete the one that doesn't look as good.
If you go into Settings > Camera, I think there's an option to turn off it leaving the non-HDR photo.