Loaning money to a risky borrower can be practically risk free if the borrower provides collateral. And the deposits in SVB are an excellent example of collateral. They are illiquid, but the funds are being held by the FDIC, which is highly reliable about (eventually) paying out (some portion, not necessarily the full amount).