They made a bet that people wouldn't need their money back right now. It's the constant risk in fractional reserve banking.
SVB should have purchased more swaps or swaptions, but this is me Monday morning quarterbacking. If depositors had left their money like It's a Wonderful Life things would have been fine.