Why do teachers get such a bad deal on maternity pay?

Summary

With women making up the vast majority of the workforce, could better maternity leave pay help tackle the teacher retention crisis?