Ohr HaChaim explains with what attributes the Torah was given i.e in the attribute of Hased/Grace and Gevurah/Strict Judgement.