I think that it was a mixture of both, for Marie Feodorovna and for little May. Plus, Marie/Maria is a very religious name (the Mother of God is Mary, there are several Marys in the Bible, saints etc.) and with Alix's religious devotion, it did seem like an obvious and appropriate name for Maria Nikolaevna. That's just my two cents, though.