You are absolutely correct — the lenders are most to blame for this mess, along with the regulators who knew what was happening and refused to fix the problems (even blocked attempts by others to fix the problems).
While many borrowers were indeed guilty of fraud, for the most part, they couldn’t have done it without the complicity of the lending establishment.