why did early humans live in caves