I can almost guarantee you that this procedure cost more than the expected tax revenue of the resulting child.
If it was paid for with public money (I'm not sure how health care works in Sweden), this was probably not helpful in paying for pensions.