Jesus called Judas "Friend" even at the moment of betrayal. Even here, Jesus gave Judas the opportunity to turn away and to change his mind. 1Co 10:13 makes it clear that in every temptation there's always a way out provided by God Himself. Here, Jesus is giving Judas a way out as He asks, "Friend, why are you here?" In other words, Jesus was giving Judas one last chance to change his mind.