Obviously you have never rented a house or apartment before. The deposit is for any expenses not paid. That includes rent, damages or unpaid utilities. The deposit should be FULLY refundable upon leaving if there are no issues with the rented property.