She may have thought, however, that she was giving him another chance and that he was promising, in exchange, to do better.
She gave the guy a second chance in exchange for him doing better.
The girl never thought the guy would do better.