Because cats are predators, they like to hide, and boxes are perfect for them to feel hidden and protected.