They are not incompetent at assessing risk. That is entirely their job.
It was that the government intervened in the housing market and to do so, assumed risk from the 1993 Clinton initiative to offer minorities access to mortgages and purchase their own homes.
Mozilo from Countrywide exploited this.