Why did Cleopatra have a child with Caesar?

Did she? There are a lot of questions about Caesarion's parentage. Caesar himself never recognized the child and we only have Cleopatra's word that Caesar was the father. There are many reasons why Cleopatra would want to name Caesar as the father, all of them being to her political advantage.