Given that a good chunk of the fleet got wiped out over Vulcan, a "battlefield promotion" makes sense. (The Klingons or the Romulans might decide it's a good time to make trouble.) Captain Pike certainly needed time to recover from his injuries.
I'm not sure if Kirk being the youngest Captain in Starfleet was canon or not, but some of the stories and comics I read as a kid implied it.