The mouse ran from the cat all the way to the kitchen because it chased him.
Who is "it"?
the cat