I'd say in low light the iPhone automatically ups the ISO to 1600 or higher to enable a reasonable shutter speed...
This results in grainy photos...
If you were to adjust a Pro SLR to take photos without flash in similar lighting conditions they would appear grainy too...