Some hosts set a security deposit so that they can make a claim to Airbnb if a guest causes damage.
Airbnb does not charge the guest the deposit when booking. If a host makes a claim and Airbnb agrees that damage is to be paid for then they charge the guest.