Pius XII in his Apostolic Constitution Christus Dominus (1953) gives us the answer :
« From the very earliest time the custom was observed of administering the Eucharist to the faithful who were fasting. Towards the end of the fourth century fasting was prescribed by many Councils for those who were going to celebrate the Eucharistic Sacrifice. So it was that the Council of Hippo in the year 393 issued this decree: "The Sacrament of the altar shall be offered only by those who are fasting." Shortly afterwards, in the year 397, the Third Council of Carthage issued this same command, using the very same words. At the beginning of the fifth century this custom can be called quite common and immemorial. Hence St. Augustine affirms that the Holy Eucharist is always received by people who are fasting and likewise that this custom is observed throughout the entire world.
Doubtless this way of doing things was based upon very serious reasons, among which there can be mentioned first of all the one the Apostle of the Gentiles deplores when he is dealing with the brotherly meal of the Christians. Abstinence from food and drink is in accord with that supreme reverence we owe to the supreme majesty of Jesus Christ when we are going to receive Him hidden under the veils of the Eucharist. And moreover, when we receive His precious Body and Blood before we take any food, we show clearly that this is the first and loftiest nourishment by which our soul is fed and its holiness increased. Hence the same St. Augustine gives this warning: "It has pleased the Holy Ghost that, to honor so great a Sacrament, the Lord's Body should enter the mouth of the Christian before other food."