Mary prophecies a praise to the Lord by virtue of HolySpirit revelation.
The word, `Lord` means `supreme in authority`. Is God `supreme in authority`? -> Yes, because `God` is the self-existent Creator.
So, God is Lord and Lord is God.