While there is a correlation between developing a secure attachment and overall well-being later in life, it cannot be said that the attachment is the only cause of this well-being because other factors need to be taken into consideration. For example, developing a secure attachment between baby and parents takes a lot of time, so higher-class families may have a higher correlation of secure attachments simply because they are able to take time off of work. Lower-income families may not have this option. If this type of correlation exists, then there are clearly other factors playing into the relationship such as overall opportunities or the type of neighborhood and school district that the baby grows up in that are equally dependent upon the family's financial status.
This is really interesting and I think a definite possible cause for both higher well-being later in life as well as what kind of attachment the child forms. I think it's also possible for higher-income families to actually foster a less secure attachment style, especially in today's world where everything is fast-paced and on the go. Those with really time-consuming white collar jobs might have less time to spend with their children, who, with their greater economic means, might find more attachment with other things like maybe even technology such as video games.