It is probably a dream sequence of Sonakshi.If not,then Karan may have instigated Rohit wrongly against Sonakshi regarding the accident which happened on that day.Rohit may then do this for revenge knowing that Sonakshi believes love can happen second time and that she will accept him.