We are missing the point.
Why did the judge allow her to stay?
Why did the ‘legal system’ allow the judge to allow her to stay?
Why did she stay? Isn’t that obvious?