Because in years past, during a war, soldiers would be allowed to barge into peoples homes and stay as long as they’d like. The people had no say in the matter but were required by law to welcome the soldiers in. Think about it this way, how would you feel if some random army guy barged into your home and stayed for weeks. You may have to give up your room, share your food, and anything else the soldier would like. How would you feel?