2 different stories a thousand years apart.
with the same principle
here’s another
Ezekiel 44:2 “This gate shall remain shut; it shall not be opened, and no one shall enter by it; for the Lord, the God of Israel, has entered by it; therefore it shall remain shut.”
Song of Solomon 4:12 A garden inclosed is my sister, my spouse; a spring shut up, a fountain sealed.
(Mary had become the temple & dwelling place of the Almighty, like the Ark of the Covenant in the Old Testament. Mary was a vessel consecrated to God alone?)