He asked that question because he realized that the chief priests wanted to have Jesus executed. They had brought Jesus to him only because they were jealous of Jesus. And Pilate thought that the crowd would prefer that he release Jesus.