Her pupils shrink because the muscles contract.
When a person opens their eyes in a brightly lit room, the muscles in the iris contract to reduce the size of the pupils. This reaction helps to limit the amount of light entering the eye and protects the retina from excessive brightness, which can be damaging.