I love it when characters surprise you, just like real people. When I write a scene I just try to make the characters behave in a way that feels natural to them. Sometimes that means they make a left turn and do something unexpected. Those are always the best scenes in my opinion.
Literary imagination is an aesthetic object offered by a writer to a lover of books.