Well back in the Renaissance time, Copernicus made a theory that the Earth was in the middle of the planets.
Hey sis, how do we know that the sun is in the middle of all the planets.
YES! That's exactly what they thought. For example, in one of the bibles it said they God had stopped the Earth from moving. So geocentric theory was making some sense.
SO then did everyone things that the stars, sun, and the other planets travel around earth?
Though, later on Copernicus couldn't prove everything about the geocentric theory. So he later came out with the heliocentric theory. The heliocentric theory is where the sun is now in the middle and everything travels around the sun.