In case you're not simply trolling, most dogs need some sort of "den." For my sister's dog, that meant lying under tables, desks, etc. For my dogs growing up, it was their plastic igloo in the backyard.
My wife and I got our first current foster fail right after San Antonio's snowpocalypse. We'd told ourselves that we wouldn't bring home a dog that day, but we were told she was being put down the next day, so we said we'd take her home and asked for a kennel (you're required to have a kennel for your foster dogs). The shelter said they were out of kennels after the big freeze, so, while my wife worked on the paperwork, I called every pet store in town, looking for an oversized kennel to give our pup lots of space. We ended up driving 40 miles round trip to get a large kennel, took our new 3 year-old puppy home, and introduced her to the apartment. Then, I brought in the kennel and set it up. I'd barely backed out of the kennel after setting up the blankets before this sweet little girl went straight inside, her tail wagging for the first time after coming home with us, and comfortably snuggled down.
Now, we have two dogs and that same kennel. We don't actually close them in that kennel anymore, so I pulled the door off of it. Every day, multiple times per day, they'll each go into the kennel and just relax. When there have been really bad storms, we've draped blankets over the kennel so the one who's scared of thunder can have a safe space. When the two of them have played with each other too much and one wants a break, they'll go lay in the kennel.
Dogs choose kennels naturally. Humans put doors on the kennels for convenience and safety. When you have a new dog, and haven't trained them yet to stay away from the cleaning supply cabinet, closing them in a kennel while you're away for a few hours gives them a safe space in which they can nap while you don't have to worry as much about them hurting themselves.