According to Christian doctrine, the main goal of human life was the salvation of the soul. And the church helped people in this. Every believer had to think not about how to get rich or gain power over other people, but about how to end up in paradise after death. To avoid hellish torment, it is necessary to visit the temple, participate in the church service, give alms to the poor (they were considered intercessors before God), and do other good deeds. Hell is prepared for the gshniks, and the righteous will enter the Kingdom of Heaven and will experience eternal heavenly bliss.
Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.