I’d guess it helps short-term survival.
Eg: Rest your twisted ankle through pain and inflammation instead of keeping to use it.
Even though it increases recovery time, better be on the safe side of decreased usage to avoid further damage.
Which is why in modern times RICE speeds up recovery (rest, ice, compression, elevation) in twisted ankles.
But we have ratio- which mammels didn’t have for millions of years.