I think you might be misunderstanding. They’re still getting paid. They’re just frozen in time and not getting stock vests or raises.
Could it be that employees that take maternal or paternal (parental) leave are significantly and disproportionately more likely to exit a short time after returning from leave? Or else see some other significant pattern of attrition after parental leave - controlling for the absence and costs of the leave over its duration?
Not commenting on the ethics or legality of this sort of HR accounting...