They were done at the same time and they are not in such a simple causal relationship. Try thinking and learning instead of trying to come up with arguments for claims you've already decided are right.
I've read several books on history of science. in none of them did a scientist started with a philosophical idea which resulted in scientific discovery. it's always the opposite. e.g., quantum mechanics was the result of physics thinking, but the philosophical take came after that.