I will make it simple.
Kaido wanted to be Joyboy but failed. Then he defeated Luffy, and said he couldn't be Joyboy either. Then Luffy defeated him and in his final thoughts described Joyboy as the one able to defeat him. So, Kaido and King recognised Luffy as Joyboy.
King had his chance to...