Most mortgages are purchased by Fannie Mae and Freddie Mac, government-sponsored enterprises that help keep mortgage rates affordable.