Raycast2D hit returns parent?

I’m not sure if this is how its meant to work? Seems counter intuitive but it seems that if I check:

someTransfrom = raycastHit.transform;
Debug.Log("" + someTransform.gameObject.name);

It prints the parent of someTransform? Anyone else having this issue?

No. Are you sure your raycast it hitting what you think it is?
Also someTransfrom

It seems if the object has a rigidbody then it will return the object, but if not then it returns the parents rigidbody if there is one, so if the parent has a rigidbody then you must add a kinematic body to the object that is actually being hit.