Daniel knew that the people of Judah needed to humble themselves and seek Yahweh through prayer and fasting in order for them to be placed back in their homeland. Daniel prays here and his prayer is one where we learn that prayer is not about us. It is all about Yahweh.