I'm not sure why they do that, tbh, since Gemini Nano is now part of Chrome, and you can download it without remote attestation. If you were dedicated enough, you could probably force the AICore system app on a rooted device into using the Gemini Nano model you downloaded from Chrome. I briefly attempted this but it proved too annoying so I gave up.
Edit: It appears Pixel Screenshots works differently than Pixel Recorder, which is what I was looking into.
It appears that they are doing server side verification of the devices TEE[1] keys plus bootloader checks, either of which will trip it.
This can be spoofed using leaked keys (that get revoked fairly quick), but in this case it seems they are also verifying that the keys are the keys for their Pixel 9 devices.
[1]: https://source.android.com/docs/security/features/trusty