Ultrasound measurement

I had an ultrasound yesterday and it said I was 9 weeks and 4 days pregnant going by my lmp I am 9 weeks today so my doctor told me he is going by what his ultrasound says. Why are ultrasound off in early pregnancy? I guess I'm a little happy cause I can say I'm further along.