The institution of fatherhood also included the right to name a son, as Joseph named Jesus, thereby legally recognizing Him. “In ancient times, the name was the compendium of a person’s identity. Changing one’s name meant changing oneself.”
https://www.vaticannews.va/en/pope/news/2022-01/pope-francis-general-audience-joseph-fatherhood.html