Jesus fasted from food and water for forty days in the wilderness. It was not a religious ritual or merely a display of his restraint. Rather, it was a time of trial and temptation which he endured by entrusting himself to God and being nourished on the Word of God. The point of the wilderness, for Jesus, was to experience the real presence of God with him, and power of God at work in him. ...
The ... practice of denying usual comforts is a means of deepening our sense of union with Jesus, and reorienting our life around the things of God. We give up that which distracts and entangles because we want to experience some real joy and freedom in Christ.
Haug & Walker, Journey to the Cross