BECAUSE HE GOT TRICKED BY WOMEN.
Sanji is horni. His sense goes out the window when women are involved. Coby is not like that. He should have known that it was a pirate posing as a civilian. Cause even Grus figured it out. You know, Grus, someone who isn't hyped to have broken coo like Coby does?