Why do players smear black under their eyes?

Black eye smear reduces the blinding sunlight when looking up towards the sun, when catching/hitting the ball