Except that 1 year off has put them 1 year behind their peers who now have 11 years experience. Their skills have also decayed by a year, and they missed 1 year of developments in the industry.
People shouldn’t be penalised for having kids, but likewise it should be recognised that having children does impact career trajectory in a non-discriminatory way.
In my opinion general "years of experience" is not a large contributing factor in regards to pay anyways. Relevant experience on specific projects using certain technologies and expertise in specific domains matters a lot more. It's supply and demand.
Someone else is the same age, graduated the same year, from the same school, but took two years off of work and therefore has 8 years of experience. They make $80k, which is less than their colleague.
See the difference?
People may have different commitments to work after having kids, and compensation can and should be adjusted based on that.
I definitely work much less than I did pre-kids, but my compensation has gone up significantly. I think this is typical for men. My wife also works less for more money post kids (but she had kids while doing postdoctoral work, and then moved to private industry).