Cats climb into boxes not because they're weird - it's actually very logical from the perspective of their instincts. A cardboard box for a cat is shelter that gives it a sense of security. In the wild, cats look for narrow, enclosed spaces to hide from danger and predators. Even a house cat remains a hunter, and the same ancient programs are running in its head. A box is like a personal fortress where it can observe the world around it while still feeling protected.
There's another factor - thermoregulation. Cats are very sensitive to temperature, and in the enclosed space of a box, the temperature is higher than on an open bed. Cardboard also insulates well, so the cat is more comfortable sleeping there. That's why an expensive orthopedic mattress gets ignored - it just doesn't provide that sense of safety and coziness that a regular box does.
If your cat has made an odd choice and prefers cardboard to furniture, don't be upset - it's completely normal. Many owners even deliberately leave boxes around the house or buy special box-shaped cat houses. Your cat will be much calmer and happier if it has such a shelter.