The treasuries are effectively zero-risk assets to the trust fund and they also pay interest. Just having the fund sit the on cash would not be efficient.
The money goes to the trust fund, the trust fund buys treasuries and meets it's outlays using the maturing treasuries.