Why do the muscles of the Iris contract and relax?
To alter the size of the pupil, so the correct intensity of light is allowed through. Enough light is let through to allow clear vision, but not so much light that the retina might become damaged.
CM