He does this because the dress is such a bright shade of yellow; he is pretending that it is hurting his eyes.
It is the typical stereotype humour, as in he needed to hear it loud and slow, as in he is Spanish.
r43871