The reaction shown above is a double displacement reaction or double decomposition or double replacement reaction. This type of reaction involves an actual exchange of partners to form new compounds.
For example:
AB + CD → AD + CB
Such reactions are driving by one of the following factors:
formation of an insoluble compound
formation of water or any other non-ionizing compound