(something) managed to (do something)
People use the phrase "manage to ___" to talk about things that weren't likely, but happened anyway. In the example above, the boss doesn't understand why the mistake happened, so she asks how it "managed to happen".
Here's another example of using "managed to" to talk about doing something which wasn't likely:
Follow PhraseMix