That's what the scorecard says. See, it's not wrong to get out, everyone will perish to one good ball or the other. Rahane for example got a good ball from Craig that bounced from a good length. Kohli, you could blame but he is a good player of the short ball and he probably trusted his ability in playing that short but the ball got too quick to him.
But what Rohit did was a basic elementary schoolboy error in test cricket. Even U19 cricketers will know that you have to play for the day in the last 6 or 7 overs, especially with the 2nd new ball moving around. Add to this the delicate match situation in which there is only a fragile lower order to come after Rohit and Ashwin. And Sharma decides to clear the boundary trying to "take the attack to the opposition" in the last few overs of the day against the 2nd new ball. Are you freaking kidding me?
This is equivalent to the shot the Prof played in the 2nd innings of the Edgbaston test when Pakistan were trying to save the game.