Eh Prince Charles has said many times that he would like a granddaughter. He’s also not that great at remembering the “party line” for stuff when talking to the press. He probably meant it and had no thought that it could be awkward later if they had a boy.