If people could give away unwanted pregnancies to people who did want them, abortion wouldn't be a thing.
What a wonderful thing it would be if we could transplant an aborted embryo into a warm loving womb, knowing that the little human would be welcomed and loved.
Surrogacy is so big in some countries now, it is helping the poor to afford housing in many places like India.
In ancient Israel it was quite acceptable to use surrogacy to provide heirs for a man who had property, either because his wife could not conceive or because he had only daughters. Of course it was done the old fashioned way because they did not have the medical technology we have today. It was accepted at the time and God made laws to protect the women and children in such an arrangement. I believe also that men commonly died at a young age so the available males could have more than one wife. It was a protection for the women who did not really have the option to fend for themselves. It gave them a home and family.