If it were a three person company, one person is now gone for 14 months and legally can’t be replaced? A nightmare for the other two employees.
If your company can deal with an employee getting hit by a bus / winning the lottery and quitting, then it can deal with an employee taking maternity/paternity leave.
Example: our childcare facility employs two people, and replacements are VERY difficult to find at the moment.
Like with any other law regulating worker benefits and worker safety. But companies know that starting out and have to plan and act accordingly. That's the cost of doing business.
Businesses are not at fault for their employees getting pregnant, so why should they have to shoulder the risk? If society wants to protect mothers, society should pay up, not the individual businesses.
Are you saying people shouldn't run childcare facilities? Or only huge childcare facilities are allowed, which certainly wasn't the intention of the laws for maternal leave?
What about the case where the guy leaves because is cool in software engineering to change jobs very often? or because now language X is cool and the guy wants to add that on the CV and not your old boring language Y.
In any case your employee can leave so make sure you are not dead because most of the value is in this person head. Though you might as always make a counter offer and pay him much more if he is so valuable.