 He knew what Judas was going to do even before he did it. It wasn't anything new to Jesus. It might have been new to the disciples. They were like, why did he do that? Judas, why did you do that? But God already knew because he knows the thoughts and intents of the heart. Corinthians 3 and 20 says,