First SVB was bailed out by FDIC funds which all banks pay into.
Second, to say 'privatized gains, socialized losses', you are assuming that banking is like gambling, with no value being created through the banking process.
Even if banks were being very very safe, they would still make money by lending out deposits. (Whether that is good or bad for society, is another question, which I would argue the answer to would be bad).