I put a transform parent in the prefab, but the transform parent disappear in prefab

I put a transform parent in the prefab, but the transform parent disappear in instantiated prefab,
why?
this is the first prefab


and when instantiate new prefab
it gone

why?

this is the script i write

public Transform Box;

void OnCollisionEnter(collision col){

if (col.gameObject.tag == "GameBox")
{
 transform.parent = Box;
}
}

Objects and components in the project view (prefabs) can only reference other objects in the project view - this is by design - if you were to try instantiating that prefab in a different scene, Box is not there, and you get error.

You have to perform some sort of search when the object is instanced, most likely in the Awake() function or Start() of that component