He wasn't. Willy implanted a chip that he could use to give Mega Man thoughts. Willy used it to make Mega Man think he was afraid and also let bad guys go because he felt sorry for them. But that also means Willy implanted the idea that smelling a rose made him all tingly inside.