The apparent ability to zoom in on stars using a Nikon P1000 camera or any other camera is actually a result of an optical zoom feature, which magnifies the image being captured. However, this zooming capability has its limitations.
In reality, stars are incredibly far away, with vast distances measured in light-years rather than miles. The light from stars travels a tremendous distance to reach us on Earth. When we use a camera to capture images of stars, we are essentially capturing the light that has traveled across these vast distances.
The zoom feature on a camera simply enlarges the image of the star. It does not physically bring the star closer to us. The camera's zoom capability allows us to capture more details of the star, but it does not alter the actual distance between the camera and the star.
Keep in mind that even with a powerful zoom lens, there are limitations to how much detail you can capture from astronomical objects. Due to various factors such as atmospheric turbulence and the inherent limitations of the camera's sensor, there are practical limitations to how close you can "zoom in" on stars or other celestial objects.
So, while the Nikon P1000 camera's zoom feature can enhance the apparent size and detail of a star, it does not change the fact that stars are indeed located at immense distances from us.