The phrase ka-annā waḍaʿnāhu ilā ramsin mulḥad concerns the disappearance of hope for a benefit, but its image belongs to burial. Giving an expectation the treatment of a body placed in a grave makes the lost prospect seem inaccessible.
Rams names a grave, while mulḥad specifies burial with a side niche. Ka-anna establishes the likeness. The passage should be understood as forceful figurative language, not a report of an actual funeral.