crooks bought CD or credit defaults...so basically it was one big insurance scam. if the loans defaulted the people buying CD cash in big. the person selling those CD insurance were scammed by credit agencies who rated those bonds as AAAAA credit rating when they were infact junk bonds.
Risky loans and deregulation are good for the US economy and stock market. They may create bubbles, but the net gains are always positive.