The Quran/Koran mentions her!!!
I get your point and the apocryphal scriptures would still leave a lot to be desired in the “edification” department. Yet the fact that the Muslims hold a place for her may simply be part of a fulfillment of prophecy that all nations would know Mary as blessed even if their stories of Mary are twisted. The Muslims even love the baby Jesus after a fact... practically a street rat that made good, faked his own death and retired somewhere and had kids!