All the human being needs a shelter from the harsh weather. In the forest the wild animal go to their caves or den which they have find or occupied from others to safe them self from cold, rain and sun. Because without a shelter from sun, rain, cold, they get tired just like us. A shelter provides safety from other animals that might cause them harm.
But if you had a pet, you have to decide the safe place for your pet to save them from any harms cause from sun, cold or rain or any atmospheric problem. One can say that shelter is a safe area to call home. If you are keeping your dog without a fenced yard or enclosed patio that is really not safe for your dog.
In many a families there is a rules that they keep there dogs outside, but it is only good if your pet is safe from the bad weather. A special doghouse with a good bed is good or access to a garage is fine for your pet.
Some one keeps there pet inside the home should teach how to behave in the house. Teaching them with kindness and patience will help you to have a happy, well adjusted dog. The dog is a very curious pet, they always use to go to the corner of the room or under the bed to find interesting things make sure there is nothing he can get into that might be dangerous for them.