The first thing King did in Onigashima was to send the Flying Six after Yamato, and then he made the declaration that the priority to win the war should be to kill Momonosuke.
Now Yamato and Momonosuke are likely to make their way to the roof.
King will follow them and that's how he ends up there and his fight with Zoro begins