I theorize that the structures were built to keep bugs off them as they slept.
I think you’re right-bugs, snakes, bats*** and maybe to deter bears from eating them-and fires to cook food and keep warm in a damp, cold cave...