The aperture affects the shutter speed due to its role in creating proper exposure. With a smaller aperture or higher f/stop number, more light is needed so the shutter speed must be slower to allow more light to enter the camera.