That is really not true as anyone who has read in depth about the financial crisis knows. Adam Tooze in his fine book on the financial meltdown and aftermath, "Crashed: How a Decade of Financial Crises Changed the World" that is well worth reading. Well known investment manager and Bloomberg columnist, Barry Ritholz, skewers the idea that the Community Reinvestment Act had anything much to do with the meltdown. Unlike the Tooze book, this will only take you about three minutes to read.
My wife and I just happened to be looking to buy a home around 2003 when all of this was going strong a few years before the housing market collapsed. When I asked my broker what papers he needed to prove we were creditable borrowers, expecting him to ask for our bank and investment statements, tax returns, and payroll stubs, he told us we don't need anything. Nothing! I was astounded. He said all we need is to sign the mortgage loan agreement and we'd get the money. Incredible!
The CRE along with the cancellation of the Glass Steagall Act during the Democrat Clinton administration led to this bizarre arrangement. No one cared. Everyone was greedy and hoped to get rich buying in April and selling the house 6 months later in October at huge profits. Greedy deadbeats earning $30,000 a year purchasing a $600,000 home hoping to sell it for $800,000 the following year. It was like the Tulip boom in the 1600's. Everyone was at fault. Greedy deadbeat buyers, crooked banks who didn;t want to get stuck with bad loans, rating agencies who didn;t want to lose their customers the banks, and Congress and the Presidency who pushed these loans and removed regulations that worked for 70 years. Of course the politicians didn't want to take any of the blame. Similar things are happening now - the Fed's printing has made it worse today. The Debt, deficit spending, etc. When the next recession hits, the Fed, the politicians, etc will again blame private industry when it's the government that always gets the ball rolling.
By the way, the S&L (Savings and Loan) crisis was also caused by the government although your author Ritholz didn't blame them for that either. Congress set it up so investments in real estate could be written off for tax purposes in 19 years rather than the usual much longer period. So real estate investors build strip malls not because there was a business demand for them. Rather, they build them to write off their costs against profits they made in other real estate ventures. So there again, the government and Congress created the crisis, not private industry. Its the government that distorts the economy and drives private business to invest poorly, whether in malls or homes. Neither would have happened without the government being the catalyst.