Not surprised, during Nietzsche’s time we had the rise of Spiritism, which presented itself as a “science” first and philosophical doctrine second.
If science proves some belief of Buddhism wrong, then Buddhism will have to change. In my view.
He is well aware which side of the bread the butter's on.
That said, the scientific method is not without its gargantuan biases and filters. It looks through a pinhole.