Bill knew the little girl's name because it was the same as his friend's name.
His old friend, to whom he was talking, was named Cindy, and she was the little girl's mother.