Billy and Nanny have 2 kids.
Okay, so basically, the joke is that billy goat and nanny goat are types of goats, and it is funny because they are parents.