Christian monks taught laypeople the art of stained glass, which served to teach religious scripture to illiterate peasants through images.
Since these peasants didn't know how to read, they had to be taught about religion in one way or another. So, paintings were used for such a purpose.