It's not. Investors in the secondary market don't want to buy shitty subprime loans. The only reason lenders originate these awful loans is because the government incentivizes them to do so by guaranteeing to buy them via Fannie and Freddie. Fannie and Freddie buy half of all US mortgages, and in doing so dramatically distort interest rates and the amount of liquidity in the housing market. They also guarantee these loans, something a lender would never do, which is why mortgage-backed securities were considered "safe" leading up to the crash in 2008.
If Fannie and Freddie didn't exist, subprime loans would either not exist or would have dramatically higher interest rates in order to properly protect against the risk of default.