Seeing as how DNA testing wasn't around back then, what was the proof that Mary was the real mother of Jesus? If she was "intact" how could she prove that she had given birth and not just adopted the baby Jesus? Did the "Church" think that part out?
The witness of the Church, -- St. Joseph and the apostles in particular, and Mary herself, on that score. Like the entire Christianity it is a matter of belief. Some disbelieve. It is characteristic of the Protestants to disbelieve. But Catholic Christians believe.