They accidentally repaid their loan early, which was explicitly allowed in the contract. The hedge funds were under no obligation to pay them back, since the money was now rightfully theirs.
And flash loan contracts are a bright neon sign saying "arbitrage opportunity!"