Mary was still on earth when some of the passages in Scripture were being written.
The earliest stuff. But nobody knew they were Scripture until they had been used in the liturgy for a couple of centuries. And none of the writings were written for Mary’s benefit.