Rather than being attached to the mother, it could just be that through the attachment, the child is learning how to interact with the people around them and important aspects of social relationships. This could be independent of emotional attachment to the mother.