Question: how does a first camera work?
Answer: The first camera was essentially a room with a small hole on one side wall. Light would pass through that hole, and since it's reflected in straight lines, the image would be projected on the opposite wall, upside down.