It could be that Mary, or Miryem as the word reads in Aramaic/Arabic, is not merely a name but has a deeper meaning, especially since the other Miryem is addressed as Maria (Miryem) Magdalena. A mere speculation though, but the probability is not nonexistent.
We should not forget Semitic names also mean something linguistically. They describe something about the person which is traditionally something the person is predicted to accomplish in their life, their fate or describe their personality. Due to this, it is not uncommon in the past for people to have changed their names midlife, so for example Abraham being changed from Abram is very probable. The additional "Heh" in his name would make a difference linguistically to the meaning of his name. In his case, the Heh implies the person has established something instead of just being called "the establisher", so this is why he changed his name as he fulfilled his expectations as a person and his fate.
A person can also be born with one name, but they change path and so a name change is more inspirational. Your name is supposed to offer you inspiration and beyond this your name has no meaning except as an address for you. You could call yourself e.g. 1-5 of 135 if your name had no use for inspiration or telling something, if we rule out esthetic irrelevance and vanity.
Be well
Qarael Amenuel