Why does your male duck attack you?

because it thinks your a female and wants to have sex with you