In order for Rome to know how much money they could collect through taxation, they needed the people of the empire to register. For Joseph and Mary, it meant traveling over 60 miles to Joseph's hometown. About a three day trip on foot. It was especially hard on Mary, who was very close to delivering her baby.
The birth of Jesus Christ is not some nice Christmas fairy tale. It has "historical validity".