Explain the doctrine that Mary was a Virgin for life?

Mary is the only woman who had a child while still a virgin. She never had intercourse with any man not even Joseph.