What is the role of blood clotting in homeostasis?

 What is the role of blood clotting in homeostasis?