If Luffy passed on his stawhat it would have his presence nami clima tact would have her presence, usopp black kabuto would have his presence. Kaido was deeply wounded and scarred by enma and ame do you really find it that strange he is able to recognize it's presence.
WB recognized Luffy wasn't just wearing any stawhat but one that resembled the one Shanks used to wear, he probably felt it same way Kaido did Enma. Does that mean Shanks left his haki in it using your logic