“In the beginning was the Word, and the Word was with God, and the Word was God. He was in the beginning with God, all things came to be through Him, and without Him nothing came to be. And the Word became flesh and made His dwelling among us. He was in the world and the world came to be through Him, but the world did not know Him. He came to what was His own, but His own people did not accept Him. (Jn 1 vs 1-5, 14, 10-11).
When Joseph and Mary arrived in Bethlehem, it became clear that the Babe in her womb, the Word of God, was to be born. The town was teeming with others who had come to register in the City of David. Every place Joseph turned for shelter, they found rejection. The inns were all filled! They turned them away and sent them off. It was not their problem. Let somebody else help them.