The Gospel tells us that Mary Magdalene was the first person to whom Jesus revealed himself after his resurrection.
We should not confuse Mary Magdalene with Mary, the sister to Martha and Lazarus. They lived in Bethany a few miles outside of Jerusalem. The woman to whom Jesus showed himself that morning was called Magdalene because she came from the town of Magdala up in Galilee. Luke mentioned her earlier as one of the women who provided for the Apostles from their needs; and Luke said that seven demons had been driven from her. That would seem to mean that she had been a sinner.
We can’t tell what reason Jesus had for appearing first to Mary from Magdala, but he opened the way to one supposition. He let us think that love for him is all the credentials we need for being admitted into intimacy with him.