No digital camera can capture every tone available in a scene. In other words you can’t record what you see with your eyes. Some detail in dark areas is lost because not enough photons are captured by the sensor, and details in light areas vanish when pixels in a sensor are flooded with more light than they can handle.
The range from the darkest detailed picture elements to the brightest is called the dynamic range, and the goal of proper exposure is to make sure that the most important tones in an image fall into that range.