Even though the sun is much more larger and has stronger overall gravity than the moon, the moon is much closer to the earth so that is the reason why its gravitational gradient is stronger than that of the sun
The very first recorded case of a geocentric universe originates from around the sixth century BCE. It was during this time Pre-Socratic thinker Anaximander proposed a cosmological framework where a round and hollow Earth was held on high at the focal point of everything.
As per the geocentric model, the Sun, stars, Moon and planets all orbits the Earth. The geocentric model was the overwhelming depiction of the universe in numerous old human advancements, for example, those of Aristotle in Classical Greece and Ptolemy in Roman Egypt.
The geocentric model was inevitably supplanted by the heliocentric model. The most punctual heliocentric model, Copernican heliocentrism, could expel Ptolemy's epicycles in light of the fact that the retrograde movement could be believed to be the consequence of the mix of Earth and planet development and paces.
It was used as a prison, because ironically enough, the fortress meant to protect against pirates wasn't done being built until all the pirates were gone.