The goal of art was to spread a religious message, not to create mathematically correct canvases.
The appeal of linear perspective to medieval artists was partly that it made their art appear more realistic, an partly that it made their art appear more like art of Roman antiquity.