The hood blocks unnecessary ambient light in back-lit condition etc to prevent ghost/flare and also protect the lens surface from damage.