But it's always important to remember that people believe their religions. And not just the clergy. The past is a foreign country, they do things differently there.
They didn't imprison him for astronomy theory. Astronomy was largely not separable from theology. Both Galileo and his judges believed this.