Depth perception allows us to see the world in three dimensions and to judge the distance and movement between objects and ourselves. Light rays enter the pupil and land on the retina, forming two-dimensional images. The brain processes these images and interprets them as a three-dimensional representation of the world around us.
You too see in 2d:
https://www.allaboutvision.com/eye-care/eye-anatomy/depth-perception/