While it's possible that Mary's seclusion is the reason that she's alive, it's also important to note that it could've killed her too if these officers hadn't come to check. This passage implies that parents need to cherish their children in such a way as to make sure that they'll be cared for if things go sideways, which Mary's parents clearly didn't do, emphasizing that she was an unwanted child.