“Deposit insurance gives bank executive[s] an incentive to take socially excessive risks. In some cases the risks won’t pay off. But that doesn’t mean executives don’t have an incentive to take excessive risks.”
https://www.econlib.org/the-wrong-way-to-think-about-moral-hazard/