Douglas Harper's Etymology Dictionary cockchaffer from cock (n.1), in reference to its size, + chaffer.