Galileo arrest was more on a personal issue than his view. It's the same someone can take the Bible and hit someone on the head doesn't make it a religious argument. The science of Galileo show the earth was stationary. First Isaac Newton showed by gravity Galileo model made more sense in spite of the lack of scientific evidence which wasn't seen until a hundred years later.
Atheist tries to rewrite history is the one who claimed it was a religion vs science argument just like the flat earth myth.
Good job on denying history.
The focus on Galileo was directly related to his views being in contrast with the christian doctrine of the time.
In fact, it took many many years before the vatican officially recognised that yes, the earth orbits the sun and not the other way round.
The Inquisition started investigations concerning Galileo's theories headed by Cardinal Robertus Bellarminus and gave Gallileo an offical "warning" to stop defending his theories publicly in 1616. In that same year, they banned the works of Foscarini and started reviewing Copernicus. In 1620, they came with 10 "corrections" to Copernicus' works. The book could no longer be sold or printed without those 10 "corrections".
At first Galileo complied with the "warning", but several yeas later again started to engage the whole heliocentrism vs geocentrism debate through one of his students.
In 1624, Galileo received permission of the pope to write a new book in which he was
allowed to again theorize about heliocentrism - with emphasis on the word "theorize". As in: it was forbidden to talk about it as if it was a fact.
He completed this book in 1632, but the inquisition forced him to change the title.
He was forced to remove all hints about the tides from the titled, because he had used the concept of tides to previously theorize that the earth wasn't stationary, for which he received the "warning" in 1616.
The only reason why the book was allowed to be printed, is because he included in the prelude that "all of which follows is only hypothesis". Without mentioning that, the book couldn't be printed.
The book was written in the form of a dialogue between 3 people. At the end of the book, he attributed a few statements of the pope to one of the people that clearly lost the argument. This was Galileo's way of saying that the church's position in the helio- geocentrism debate was incorrect. This infuriated the pope so he ordered another investigation by the inquisition, which resulted in his house arrest.
And, of all things, in 1992 the Pope issued an apology for how Galileo was treated. In other words:
the vatican itself admits it. Why can't you?