so it can only be in one environment group. The pinned node group is likely to just be a classification group
https://www.puppet.com/docs/pe/2023.2/grouping_and_classifying_nodes.html#environment_vs_classification_group
The difference is a classification group which is set to production will look for the list of class name it can use to classify in the production environment but the environment group its actually in will be the code that is applied.
If that makes sense