Collapsing was a survival strategy and so was rescuing.
One learned to disappear and disconnect to feel safe. The other learned to over-function to feel loved. Both were responses to fear, and both show up in adult relationships as avoidant and anxious attachment.