mirena IUD

pl
Does anyone know how often the IUD fails once inserted? I recently went for my 6 week check and I had to have it removed because it was half hanging out of my cervix!!! 
Is this because they inserted it wrong?? What other reasons could there be? Xx