There are a few theories about how Palpatine could have had a kid. One theory is that he used dark side magic to create a clone of himself. Another theory is that he used the power of the dark side to possess another person's body and have a child that way.