It was a trap.

If he hugged her, she would have sued him and accused him of rape.