During the Clinton administration, there were two years that the federal government ran a surplus instead of deficit. As a result, the government was not issuing as much bonds to borrow money. It actually eliminated a long-term treasury bond. The foreign governments who had been relying on these secured bonds for their investment had to look for something else. Just at that time, they discovered Fannie Mae and Freddie Mac.
The rest, as they say, is history.