Perhaps they are being forced into the duel by some external factor. For example, an evil villain might be manipulating them, pitting them against each other so that they can't team up and oppose him.
It might be a test of strength. They could both be trying to prove themselves, either to their friends or to some higher power in the fanfiction world. They want to see who is truly the stronger hero.