President Rodrigo Duterte of the Philippines made the remarks in a speech to former rebels, expressing exasperation that some women preferred joining the militants to raising children.