Actually a good portion of it was in response to the rise of Protestant religions in Europe and the Muslim threat in Asia. They were trying to create enough good Catholics to resist the coming Apocalypse.