Comment by fabian2k
My understanding is that they shouldn't have spent that much time in the air (not intended as a guess for the cause). The margin is there for situations where you can't land earlier, not the margin for scheduling the landing. There is margin for expected potential delays, they were in the other margin that should never be used except in true emergencies.
Oh I think I see; so is the question not “why did they land with so little fuel”, but more like “why did it take so long to decide to redirect to a known-safe airport”?