When God Narshimha killed hiranyakashyapu, he became uncontrollable which threatened the world so to calm down Narshimha, shiva had taken the incarnation of sharbha and started to injure God Narshimha. After that Narshimha became calm down and offer his body skin to shiva.