Complex sentence: The old way of thinking was that women do not stay within the family and would marry out, increasing the risk the secret would be passed to another family.
Split into simpler sentences: The old way of thinking was that women do not stay within the family, and would marry out. And as such there was the risk the secret would be passed to another family.