The name is often linked to the Latin far, meaning grain or flour, since early versions were simple porridges.
From porridge to pudding.