Mortgage funds primarily come from the secondary mortgage market, where loans are bundled and sold to investors. Major players like Fannie Mae and Freddie Mac provide the liquidity that allows local banks and lenders to issue new loans to home buyers.