This geocentric model, with the Earth at the center and the Sun, Moon, and stars revolving around it, was the prevailing view for centuries. It was proposed by philosophers like Anaximander and Aristotle, and was later refined by Ptolemy in his influential work, the Almagest.
This view was based on observations of the celestial bodies appearing to move around the Earth, and it was a widely accepted belief for centuries. It wasn't until the Renaissance that the heliocentric model, placing the Sun at the center, gained traction, thanks to the work of Nicolaus Copernicus and others.