Why did they change my due date?

My lmp was 10/15 which puts my due date at 7/22. On my last scan at 12 weeks they measured baby and put my due date at 7/16. Does this mean baby is going to come earlier bc it’s measuring a little bigger on this scan? Or does the size of the baby have nothing to do with it and should I go based on lmp? I’m so confused