Job calls to mind all these things about the greatness of his adversity to show that he cannot be the equal of his friends with whom he is arguing, because they were free from adversities of this kind. However Eliphaz had accused him of pride saying, "Why do you puff up your heart? and so on," (15:12ff). This pride was even more detestable the graver adversities were by which it could have been corrected, as Psalm 34 says against some, "They were dissipated and not filled with remorse." (v.16) Thus as a consequence having described his adversities he shows now his humiliation, first, regarding... external dress, he says, "I stitched a sack over my skin," for such a vesture is a sign of humility, as we read about the Ninevites in Jonah 3:5. One wears ashes for the same reason to show one's frailty as Abraham said in Genesis, "I will speak to my God, since I am dust and ashes," (18:27) and so he continues, "I have covered my flesh with ashes." For the text said above that he sat "in a dung heap" (2:8) as a sign of humility.
Source: Commentary on Job