Since anyone who makes an agreement has an obligation to fulfill the terms of that agreement, it follows that anyone who is obligated to perform an action has agreed to perform that action.
Conclusion
Saying "you have a legal obligation" to do something is the same as saying that "you're required to fulfill your agreement" do perform that action.
Evidence (Intermediate Conclusion)
If you're obligated to do something, then you've agreed to do it.
Evidence
If make an agreement to do something, then you're obligated to do it
Evaluation
The question stem oddly asks about the arguments flaws. The argument makes two moves, so maybe we need to critique each one. Here's the structure:
Since [ claim 1 ], it follows that [ claim 2 ]. Hence, [ claim 3 ].
Going from 1 to 2, the author performs an illegal reversal: Since "make agreement → obligated to do it", it follows that "obligated → made agreement".
Going from 2 to 3, the author adds the idea of "legal", a specific type of obligation. Claim 2: "obligated → made agreement" Hence, "legal obligation → made agreement"
Goal
We need an answer that calls out the illegal reversal (Necessary vs. Sufficient) and that calls out the weird conflation of "being obligated" vs. "being legally obligated".