While I fully agree with you that crating is to be avoided and I'd never do it - I can see some evolutionary parallel. My husky loves to settle in corners/L-shapes, and a crate is not so different than a small cave/den which offers certainty that no predator can sneak up behind you.