Instance ID is a value generated by the system based on the list of active instances.
It is not a value attached to an instance as the list of active instances can evolve (as demonstrated by your PG).
Maybe you could use instanced buffers to attach values to your instances:
Instances | Babylon.js Documentation (babylonjs.com)