They know they are prisoners and this fantasy world is a creation of the Doms. So leaving her behind is leaving her a captive. What they didn't know was that they were hooked up to alien mind control devices. It ends up being a weird quirk in the writing... And yeah, they should have split the crossover and 100th episode. It was a great Arrow episode, but a weak crossover episode.