You see it a lot in medieval iconography. Michaelangelo also portrayed Moses with horns.
It's because a single Hebrew word in Exodus 34 can mean either "horns" - its actual primary meaning - or "rays", as in "rays of light". Which was what was meant in context.
Thank you for the excellent explanation. Many years ago, I had the opportunity to see that work of Michelangelo. He is one of my most favorite artists. His David is so relistic that one expects to see blood pulsing through the veins.