The "role" of the godparents was to ensure that the child was raised in the faith be it Catholic or otherwise. Even if the child was illegitimate, wasn't the mother named? Who was chosen as godparents could have been anyone especially if they didn't know who the child was.