Cats love to sleep in boxes for various reasons, but the most common cause is the sense of security and protection that cardboard walls provide. The box is a cat's personal space; it's secure and inviting, and there's no better hiding place for a hunter than a cardboard container.