Why would he help her escape?
It sounds more like an exchange services me.
How could she escape if the boyfriend had already posted bond?
Exactly.
There is a scene from the opera “Carmen” that tells the exact same story!
(Pres de rampart de Seville...Chez mon ami Lilas Pastia!...)
Only Carmen got away with just a promise of sex!