Just like someone could get hired, have a baby, and then take FMLA leave up to the legal or contractual limit.
Airlines know the rules and they make the hiring decisions knowing the rules may be tweaked by some
Nonetheless, I don't think it makes them less deserving than a regional pilot "dying" for the job.