Answer:
the sun is too bright
Step-by-step explanation:
The pain you feel in your eyes when you look at the sun is similar — you're doing more work with a muscle than that muscle is used to performing, and doing it faster. All of a sudden, there's a lot more light trying to shove its way into your eye at once, and, in an effort at crowd control, your pupil contracts.