BBE777,
Airlines just see it as an inconvenience because if you were to have children you would need to take leave and then on return you would likely want to work part time. I recall a female BA pilot won a court case regarding working part time(?) when she hadn't been at the company for the length of time suually needed to work part time.