When the days of their purification according to the law of Moses were fulfilled, they brought him up to Jerusalem, to present him to the Lord

 If that was the case in Egypt, it may well be that in Judaea, where the old tribal ancestries still held good, men had to go to the headquarters of their tribe. Here is an instance where further knowledge has shown the accuracy of the New Testament. 