Several things contribute to a child's form of attachment. While it is important that a primary caregiver does what is appropriate to form a connection with his/her child, the formation of a secure attachment does not guarantee that the child will be successful later in life. External environmental factors also influence well-being later in life. These external factors can include family income, class, education, religion, culture... etc. The contributing factors are endless.
I agree with your explanation in that there may be 'external environmental factors' which may influence how the child will act as an adult. If for example, the child went to a school where he/she was abused by his peers or treated unfairly by his/her teachers, the child may be traumatized by such negative treatment. As a result, he/she may be more introverted or more hostile, depending on their response to the event, as an adult.