The very first establishment of learning must have been orgnised to preach the glory of God in the form of religion. The churches in the west and temples in the east served as centres of learning. Philosophy was the subject around which sciences, and mathematics were taught and learnt. Scholars were saints and godmen.
Today the irony is, both in Communist China and democratic USA, God is forbidden from school. A perfect example of union in two extreme positions. Slowly, over decades, both countries will move towards the other and swap positions, causing the earth to be an eternal bipolar planet.