It seems counterproductive to set aside any money when you are in debt, but it actually gives you a bit of freedom from the struggle of simple surviving each week.
Having an emergency fund serves the purpose up keeping you afloat when the unexpected happens. You cannot predict emergencies, unfortunately, but you can be prepared for them!