Luffy was hungry and he saw some chocolates and he ate them. Those chocolates had an aphrodisiac giving Luffy sexual desires