When we fast we make a decision to deny our carnal nature of any pleasure, which brings us closer to God and he answers our prayers.