وَإِنْ كَانَ عَنْ وَاجِبٍ فَعَلَيْهِ أَنْ يُقِيمَ غَيْرَهُ مَقَامَهُ.
Translation: If the animal was for an obligatory offering, he must provide another in its place.
Yuqīma ghayrahu maqāmahu means substituting another qualifying animal.
Loss of the original animal does not discharge the pre-existing ritual obligation.