As others have said, it isn't just metadata, its that the pixels themselves maintain artifacts of generative models (either via a watermark such as synthid, or via "tells" that can be probabilistically detected). These persist even with a screenshot.