Well, being able to fast is deeply related to what meditation tries to achieve, mindfulness. Being able to control your urges, to know that feelings come and go, to focus even in the presence of noise (noise in a general sense, not just sounds), these are all instrumental for being able to complete fasts, short or long.