The flight was endangered and the requirement was to get on the ground as soon and as safely as possible. I do not know where it was geographically when the decision was made to divert but given the circumstances I would speculate that Cardiff was the nearest suitable aerodrome.
P.S. Sudden dive is rather an emotive phrase, are you a journo or learning to be one?