A more selfless act would be adoption. This woman wasn’t even carrying the baby of the actual couple. Pregnancy is always a health risk for the woman. There is no reason to sell your body (it’s not just the womb that’s involved) and, possibly, your life, when there are children without parents or families available.
Many years ago in the leftist NATION Katha Pollit argued against the slavery of renting wombs.