Why do cats love boxes? Evolution has an answer.
NeutralScience

Cats are known to have a fondness for boxes, which provide them with control, comfort, and optimal ambush angles. This behavior can be traced back to evolutionary advantages that boxes offer, allowing cats to feel secure while also being able to stalk prey or observe their surroundings. The phenomenon highlights the instinctual traits of cats that have persisted over time, emphasizing their need for safe spaces in their environment.
— via World Pulse Now AI Editorial System