Let me guess: the same way the "elect" were chosen, before the foundaiton of the world? :)
Well Christ was crucified from the foundation of the world, so one would assume that God had already selected His mother
Revelation 13:8 "And all that dwell upon the earth shall worship him, whose names are not written in the book of life of the Lamb slain from the foundation of the world."