The question is not "Why did the Church persecute Galileo in its centuries-long war on science?"
The question is, "How come, when historically illiterate post-moderns want to complain about the Church's "centuries-long war on science" they can always only think of Galileo?
Yup. Another point: the Church has been around for 20 centuries, which means that if it is so evil, it must have averaged at least one total outrage per century. It should be rather easy to come up with a list of 20 outrages. Yet there are only a cliched and fundamentally misunderstood three that ever get mentioned (Galileo, Crusades, Inquisition).