40 weeks or nine months?

Ok I'm told by allobgyns that it's 40 weeks, not nine months. Wtf? Why do we say 9 months?