Economic history

A state guarantees repayment of deposits up to a stated limit if a covered bank fails. What is a likely purpose of this policy?