By Default After effects work like this, so there is nothing wrong, so to fix that you have 2 option, you can create null object and parent both layer to the null object or you can do the transformation you want on the shape transform and not the layer transform, and here i'm talking about scale transform, so instead of setting the scale of "Sock" to [-75.4,173.7], keep it at 100% for both value and change the scale from "Transform: Rectangle 1", so try this and let us know.
... View more