The reason is that the “meta_key” in the database is different for repeater and group.
meta_key for repeater sub field = "{$parent_name}_{$row_index}_{$sub_field_name}"
meta_key for group sub field = "{$parent_name}_{$sub_field_name}"
When you make the switch the field data is then stored incorrectly in the database.