Rory McIlroy says he was surprised by Brooks Koepka's decision to join the Saudi-backed LIV Invitational Series.