Just like a camera. Which is why the copyright for photographs gets assigned to the photographer, it doesn't just disappear into the ether. In this case the copyright for a computer-generated image would tend to belong to whoever typed in the prompt.