The notion that science and religion have been enemies in a constant state of warfare simply isn’t true, though many today swallow it hook, line, and sinker.
Here’s a brief article identifying two of the main creators of the fictional tale, which has done considerable damage to both religion and science: