Copernicus's heliocentric theory contradicted the religious thoughts of the time, the dominant Aristotelian physics, and people's common sense. At first it was opposed by many people until Newton discovered the law of universal gravitation. It was gradually recognized by astronomers.
The religious thoughts of the time regarded the sun as sacred cannot be derived from this.