I don't see any heavy hints from pre time skip Apoo that he could already be with Kaido, like some symbol recalling the beast pirates or maybe even Wano stuff so I guess he somewhat went under him during the timeskip to later sell him his allaiance group.