There’s the whole issue of ground crew, service contracts with airport, maintenance, scheduling of the plane
Its stupid and bureaucratic, but its probably easier/cheaper to simply fly 4500 miles back.
Landing in a different airport would have required the airline to put crew and passengers up in a hotel, give them food vouchers, and whatnot for the whole time they were stuck there.
Cheaper to just fly back from whence you came.