Just because some people get it does not mean everyone gets it.
By mandating it, an employer has to consider the possibility whenever they hire someone, and so salaries will be lower as a result. If the employee doesn't get pregnant and use the leave, their salary has been kept lower with no benefit to them.
We have discrimination laws against that.