Due date

I’m trying to figure out why doctors go by the date of your last period when determining how far along you are ? And the due date as well.