No detail in God’s plan of salvation is coincidental. In the accounts of Jesus’ birth and infancy, a variety of people (and angels, too!) show up on the scene.
The feast of the Holy Family is appropriately placed on the liturgical calendar linking the Incarnation of Jesus to the human family who loved and taught him.