You're right, they did. And, there were laws (Glass Steagal most notably) that would have prevented any of this; but those laws were repealled in the 1990's.
It was not a Black Market- it was fully open, perfectly legal, and is still going on today- and it is not just MBS- there are synthetic...