i think rin was either being controlled somehow and killing some shinobi on kakashi's side and asked kakashi to kill her before she could do anymore damage or she was protecting someone from the enemy side and got in the way of kakashi's chidori.