It is tov for me that I have been afflicted l'ma'an (in order that) I might learn Thy chukkot.