The black knight threatened both the queen and the bishop, and this may have been White's only way of losing material. Although White looks to be in a desperate position, the king is reasonably safe at the moment with White's pieces positioned as they are, if White can only get that pesky black knight out of the way.