In a dark room, the pupil opens wide to let in more light. When the flash fires, it has no time to close. The light goes in, hits the retina at the back of the eye and bounces straight back into the camera lens. The red is the color of the back of the eye itself, which is full of blood vessels.
That is why red eye shows up so often in birthday, Christmas and house-party photos from the 1980s and 1990s: a dim room, a camera with the built-in flash right next to the lens, and everyone looking at it.
Why only some people get red eye
Anyone who was not looking straight at the camera, or was outside the line of the flash, usually comes out with normal eyes. When only one eye is red, it is almost always because only that eye was facing the lens.
If the same person always comes out with one red eye and one normal eye, it is worth showing the photos to an eye doctor.
Dog and cat eyes glow a different color
In pets the flash usually comes back green or yellow instead of red. The regular red-eye tool does not fix that glow: Apple’s Photos help warns that it does not work on animal eyes that show the flash in a different color, and Adobe Camera Raw has a separate correction for it, called Pet Eye.