The camera records the light that comes in for an instant. When little light comes in, the dark parts of the scene close up: hair blends into the background, the jacket turns into a smudge, faces lose their outlines. That is what happens at a dinner lit by a single lamp, at a night party with no flash and in a photo with the window behind the people, where the camera reads the light outside and leaves the people inside in the dark.
Canon teaches how to spot it with the histogram, the light graph the camera shows: if the peak sits at the far left, the picture may be underexposed, too dark.
A dark photo is not always underexposed
Some photos were born dark, and some got darker with time. The National Archives, the national archives of the United States, warns that exposure to any kind of light can cause fading, darkening and other changes. A photo that darkened in the album often comes with altered colors, yellowed or reddish, and needs color restoration, not only a light adjustment.