It mostly stupidity and an emotional overreaction by folks who dont know anything about caving.
Pick just about any human activity. Go where that activity is. You can bet good money somebody has died there at some point. We almost never close those places. Or leave the bodies there.
As for keeping the body there. Its pretty stupid IMO. Yes, there are caves that are SO difficult that it would be nearly impossible to get even a moderately injured person who could help out and wasnt dead weight out. A dead body in that sorta place? Probably only doable in small pieces at a time. There are those types of caves, but they are rare. This isnt one of em.
The rescue crew should have taken a break, maybe changed out the more tired folks, and then been allowed to resume the body recovery. Now, its been there too long probably and will be really nasty. I’d bet good money the cavers in the rescue crew didnt think getting the body out would be impossible. I am nearly certain they don’t even think of this particular cave as even remotely dangerous.
This happens in many, if not most cave rescues. The local sheriff, and firemen, and paramedics get all “we are the professionals”. Yes, they are, and god bless em for the good work they do. Buttttt… like 99 percent of everybody else, they have absolutely no clue of what caving is like, what it takes, whats important, whats not, what works, and what doesnt.
IMO there have been rescues where the “people in charge” have killed folks because they locked out the people that actually know what they are doing.
Fortunately, real cave rescue training is now available, and much of this know how and specialized training is becoming more common place with actual rescue squads formed of cavers and non caving/emt/emergency types at least getting enough exposure to realize they need to call in the right folks.