Idk if this is something you can answer, but I…

Idk if this is something you can answer, but I’ve always been curious as to why when I look up into the sky at night I see all these stars, but when images of planets are taken in space there are hardly any, if any, stars in the background. Is it the lighting that makes it so they can’t be seen? Sorry if this is stupid I’ve just never understood it

This depends on some things such as: the exposure time and how much light is captured by the camera. Here is a link to understand this better: click here