When the girl opens her eyes in a brightly lit room, her pupils shrink because the muscles contract.
This response occurs due to the pupillary light reflex, where the iris muscles contract in response to bright light to reduce the amount of light entering the eye, protecting the retina from excessive brightness.