Why did a G‑d of infinite wisdom design creatures so prone to failure as us frail human beings?

So that He could share with us His deepest wisdom: The wisdom to heal a broken world.

Rabbi DovBer of Lubavitch, Torat Chaim, Bereishit, Maamar 1:7.