Beyoncé co-wrote "Daddy" for her 2003 debut solo album Dangerously in Love. The credit is shared with her father, Mathew Knowles.
Willow Smith released a separate song titled "Daddy" in 2017 (featuring Willow's father Will Smith in the video). Different song, different writers, different era.
Beyoncé has co-writing credits on the vast majority of her catalog (often with Beyoncé, Kelly Rowland, Michelle Williams, or external collaborators like The-Dream, Tricky Stewart, Ryan Tedder, Sia). "Daddy" is a rare family co-write.