Bottom
屈 supplies the sound — qū drifting to kū through a regular k/q palatalization. A neat semantic echo also rides along:
屈 means to bend or crouch, and a
窟 is exactly the kind of low shelter you have to stoop to enter. Same phonetic appears in
掘 dig out, sharing the cave-digging idea.