If women are pregnant for 9 months why is it 40 weeks?

because youre pregnant for the full 9 months which equals to 40wks