Fannie and Freddie were subject to "affordable housing" regulations, issued by the Department of Housing and Urban Development (HUD), which required them to buy mortgages made to home buyers who were at or below the median income.
WSJ: Peter J. Wallison: Barney Frank, Predatory Lender