Why attachment is essential in human development

Why is attachment essential in human development?

How does cognition change during development?