Imagine that an author portrays a character as a likable person. However, the author is holding back negative information about the character's personality, actions, and relationships. How might that strategy help create surprise?
When the author holds back the characters negative information, they can create a scene far off from the characters introduction, and surprise the reader with an action out of the norm for said character. That is why this strategy works.