原句:
You should discuss your idea with your classmates because just having to explain it to someone else helps you sort it out for yourself.
为什么不是 just explaining it to someone else呢?
having to explain表示“必须解释”, explaining表示“解释”。根据语境,应该使用前者。