Ptolemy theory fit the churches view of the world. The bible at the Catholic Church taught that god created the earth and people that's on it. Then it made sense to the church that the sun, moon, planets, and stars all revolved around the earth.
When would fit the answer
Hope this helps
It was Casablanca to Algiers at least that's what I think