Do we know they declared a mayday or did they just set 7700. They might have declared pans or minimum fuel and ATC asked them to do this. Genuine question, I don’t know.
Of course it would not be normal but the system worked and everyone landed safely.