Never stated or even implied anywhere. Luffy simply adapted to Kaido's like he does in every fight. Base Luffy went from struggling against Blueno in EL to being able to box with base Lucci (5 times stronger than Blueno based on doriki) and that was before any haki.